From: Thomas Viehmann Date: Sat, 20 Sep 2008 22:52:05 +0000 (+0200) Subject: walk directories ourselves instead of taking a list X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=30df95d1e28e67838c3d2dba51eb6478c1f909d0;p=dak.git walk directories ourselves instead of taking a list --- diff --git a/tools/debianqueued-0.9/show-deferred b/tools/debianqueued-0.9/show-deferred index 0f70d42a..376dff37 100755 --- a/tools/debianqueued-0.9/show-deferred +++ b/tools/debianqueued-0.9/show-deferred @@ -136,4 +136,13 @@ def list_uploads(filelist): print '

Currently no deferred uploads to Debian

' 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)