[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51

Holger Levsen holger at layer-acht.org
Wed May 15 10:10:11 UTC 2013


The following commit has been merged in the master branch:
commit 3123ce30f6cf0b46c026900fdd95a8cfab7a53fd
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