[Piuparts-commits] [SCM] piuparts git repository branch, bikeshed, updated. 0.50-192-g27ab6cb

Holger Levsen holger at layer-acht.org
Mon May 13 20:18:20 UTC 2013


The following commit has been merged in the bikeshed branch:
commit d8ac572d71b7f38a32393ef22d2cfb5df8698f26
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun May 12 00:49:35 2013 +0200

    lib/conf: expand depends in O(n) instead of O(n^2)
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/piupartslib/conf.py b/piupartslib/conf.py
index 8f07dab..e54cec6 100644
--- a/piupartslib/conf.py
+++ b/piupartslib/conf.py
@@ -174,8 +174,7 @@ class DistroConfig(UserDict.UserDict):
             todo = todo[1:]
             if not curr in seen:
                 seen.append(curr)
-                todo = done + (self.get(curr, "depends") or "").split() + [ curr ] + todo
-                done = []
+                todo = (self.get(curr, "depends") or "").split() + [ curr ] + todo
             elif not curr in done:
                 if virtual or not self._is_virtual(curr):
                     done.append(curr)

-- 
piuparts git repository



More information about the Piuparts-commits mailing list