]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Add dependencies when module is create by name lookup
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 1 Dec 2011 19:57:07 +0000 (17:57 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 1 Dec 2011 19:57:07 +0000 (17:57 -0200)
We already have the data needed to add the dependencies, so call
fucntion to transform it in a list and save in kmod_module structure.

libkmod/libkmod.c

index a745ddeb1a87ed2b02ffd0c5a66673b5cd12aeda..4b0578872441182a6a46ab906cf84efd15c311eb 100644 (file)
@@ -373,6 +373,7 @@ int kmod_lookup_alias_from_moddep_file(struct kmod_ctx *ctx, const char *name,
                }
 
                *list = kmod_list_append(*list, mod);
+               kmod_module_parse_dep(mod, line);
        }
 
 finish: