]> git.e2factory.org Git - e2factory.git/commitdiff
cleanup: sort dependency list in check_result() instead doing it as a side-effect...
authorGordon Hecker <gh@emlix.com>
Thu, 4 Mar 2010 16:55:22 +0000 (17:55 +0100)
committerGordon Hecker <gh@emlix.com>
Fri, 5 Mar 2010 13:18:04 +0000 (14:18 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index 7bc930a5daf8296b6461435094d6f4e4c6163695..c4b8ec6c60c5acb90033b50ce6ed50d10026d5bc 100644 (file)
@@ -900,7 +900,6 @@ function get_depends(info, resultname)
   if not res.depends then
     return t
   end
-  table.sort(res.depends)
   for _,d in ipairs(res.depends) do
     table.insert(t, d)
   end
@@ -1868,6 +1867,7 @@ function check_result(info, resultname)
                        end
                end
        end
+       table.sort(res.depends)
        if type(res.chroot) == "nil" then
                e2lib.warnf("WDEFAULT", "in result %s:", resultname)
                e2lib.warnf("WDEFAULT", " chroot groups not configured. " ..