]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- avoid cycles and infinite recursion
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Fri, 23 May 2014 11:52:47 +0000 (13:52 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Fri, 23 May 2014 11:52:47 +0000 (13:52 +0200)
sort-pkgs

index 9c1bf98eaa68043e62df9204506267d65310c39d..d517a9db7c99756e5189cfb95163f608f6240fa1 100755 (executable)
--- a/sort-pkgs
+++ b/sort-pkgs
@@ -33,10 +33,10 @@ def build_requires(name):
 def print_packages(p):
        global packages, packages_res
 
+       packages_res[p] = 1
        for pp in packages[p]:
                if not packages_res[pp]:
                        print_packages(pp)
-       packages_res[p] = 1
        print p#, packages[p]
 
 if __name__ == "__main__":
This page took 0.025749 seconds and 4 git commands to generate.