pld-ftp-admin: bin/pfa-lintpkg - control debugfiles via options
glen
glen at pld-linux.org
Tue Mar 22 06:49:25 CET 2011
Author: glen Date: Tue Mar 22 05:49:25 2011 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- control debugfiles via options
---- Files affected:
pld-ftp-admin/bin:
pfa-lintpkg (1.13 -> 1.14)
---- Diffs:
================================================================
Index: pld-ftp-admin/bin/pfa-lintpkg
diff -u pld-ftp-admin/bin/pfa-lintpkg:1.13 pld-ftp-admin/bin/pfa-lintpkg:1.14
--- pld-ftp-admin/bin/pfa-lintpkg:1.13 Tue Mar 22 06:48:38 2011
+++ pld-ftp-admin/bin/pfa-lintpkg Tue Mar 22 06:49:20 2011
@@ -10,7 +10,7 @@
import ftpio
try:
- opts, args = getopt.getopt(sys.argv[1:], 'qso:', [ "quiet" ])
+ opts, args = getopt.getopt(sys.argv[1:], 'qsdo:', [ "quiet" ])
except getopt.GetoptError:
print >>sys.stderr, "ERR: options error"
print >>sys.stderr, "rpmlint.py tree package1 [package2...]"
@@ -18,12 +18,15 @@
quiet = False
show = False
+debugfiles = False
outstream = sys.stdout
for o, a in opts:
if o == "-q" or o == "--quiet":
quiet = True
if o == "-s":
show = True
+ if o == "-d":
+ debugfiles = True
if o == "-o":
outstream = open(a, 'w')
@@ -58,7 +61,7 @@
tree.mark4moving(tree.loadedpkgs)
else:
tree.mark4moving(packages)
- files = tree.rpmfiles(debugfiles = False, sourcefiles = False)
+ files = tree.rpmfiles(debugfiles = debugfiles, sourcefiles = False)
except (ftptree.SomeError, KeyboardInterrupt), e:
# In case of problems we need to unlock the tree before exiting
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/bin/pfa-lintpkg?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list