]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- control debugfiles via options
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 22 Mar 2011 05:49:20 +0000 (05:49 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 22 Mar 2011 05:49:20 +0000 (05:49 +0000)
Changed files:
    bin/pfa-lintpkg -> 1.14

bin/pfa-lintpkg

index f397771b29e93e52134e6b47374fd9426afe0f65..010f6d34326f948ed8221581052e7c286076739b 100644 (file)
@@ -10,7 +10,7 @@ from common import checkdir
 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 @@ except getopt.GetoptError:
 
 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 @@ try:
         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
This page took 0.040213 seconds and 4 git commands to generate.