]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Reverse order of dependency list
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 26 Dec 2011 22:10:49 +0000 (20:10 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 26 Dec 2011 22:15:10 +0000 (20:15 -0200)
Dependency list in modules.dep is kept in reverse order. Prepend to
list so all the other places treat it in the right order.

libkmod/libkmod-module.c

index 4d85b76cacd227f402caca510faf3e0f52e37e04..7793062cd13b7c27b1a4f9f8dcd4d51acada369b 100644 (file)
@@ -180,7 +180,7 @@ int kmod_module_parse_depline(struct kmod_module *mod, char *line)
 
                DBG(ctx, "add dep: %s\n", path);
 
-               list = kmod_list_append(list, depmod);
+               list = kmod_list_prepend(list, depmod);
                n++;
        }