[packages/rpm-build-tools] - avoid useless calls
witekfl
witekfl at pld-linux.org
Fri May 23 13:45:12 CEST 2014
commit 86ee549188f8c7a92616757f745547498a3ad953
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Fri May 23 13:44:23 2014 +0200
- avoid useless calls
sort-pkgs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sort-pkgs b/sort-pkgs
index 2d00aef..9c1bf98 100755
--- a/sort-pkgs
+++ b/sort-pkgs
@@ -32,10 +32,10 @@ def build_requires(name):
def print_packages(p):
global packages, packages_res
- if packages_res[p] == 1:
- return
+
for pp in packages[p]:
- print_packages(pp)
+ if not packages_res[pp]:
+ print_packages(pp)
packages_res[p] = 1
print p#, packages[p]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/86ee549188f8c7a92616757f745547498a3ad953
More information about the pld-cvs-commit
mailing list