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

Andreas Beckmann anbe at debian.org
Wed May 15 10:10:01 UTC 2013


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