]> git.decadent.org.uk Git - dak.git/commitdiff
Merge remote branch 'tolimar/rm-close-bugs' into merge
authorJoerg Jaspert <joerg@debian.org>
Fri, 1 Oct 2010 19:27:23 +0000 (21:27 +0200)
committerJoerg Jaspert <joerg@debian.org>
Fri, 1 Oct 2010 19:27:23 +0000 (21:27 +0200)
* tolimar/rm-close-bugs:
  make wnpp file world readable and do so before moving it
  Fix spelling of "IOError" so we indeed don't raise an exception
  Make that file readable by ftpteam

Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.daily
daklib/utils.py

index 16d9d9d10d1c641e7759309044fe1f402d643b7a..4324a8fe290ad9cebb354895ebce532fa98b19bb 100755 (executable)
@@ -20,6 +20,7 @@ trap cleanup SIGHUP SIGINT SIGPIPE SIGTERM EXIT ERR
 
 # get the latest list of wnpp bugs and their source packages
 wget -q -O${TMPFILE} http://qa.debian.org/data/bts/wnpp_rm
+chmod go+r ${TMPFILE}
 mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
 
 ################################################################################
index 7ed4089a4dd2610a09a7c5f7a3852eda987b5456..1756f58fa2d27132a3675a95716ab4404cf9a898 100755 (executable)
@@ -1553,7 +1553,7 @@ def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/w
     try:
         f = open(file)
         lines = f.readlines()
-    except IOerror, e:
+    except IOError, e:
         print "Warning:  Couldn't open %s; don't know about WNPP bugs, so won't close any." % file
        lines = []
     wnpp = {}