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...]"
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')
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