]> err.no Git - dak/commitdiff
walk directories ourselves instead of taking a list
authorThomas Viehmann <tv@beamnet.de>
Sat, 20 Sep 2008 22:52:05 +0000 (00:52 +0200)
committerThomas Viehmann <tv@beamnet.de>
Sat, 20 Sep 2008 22:52:05 +0000 (00:52 +0200)
tools/debianqueued-0.9/show-deferred

index 0f70d42a0191a019e616ab724915267a020b4092..376dff37aea5b71a27fd197c255f857bc868bc49 100755 (executable)
@@ -136,4 +136,13 @@ def list_uploads(filelist):
         print '<h1>Currently no deferred uploads to Debian</h1>'
     print footer()
 
-list_uploads(sys.argv[1:])
+if len(sys.argv)!=2:
+    print >> sys.stderr, """Error! Invoke %s /path/to/DEFERRED"""%sys.argv[0]
+    sys.exit(1)
+    
+filelist = []
+for r,d,f  in os.walk(sys.argv[1]):
+    filelist += map (lambda x: os.path.join(r,x),
+                     filter(lambda x: x.endswith('.changes'), f))
+
+list_uploads(filelist)