]> git.decadent.org.uk Git - dak.git/commitdiff
Generate backports-new.html
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 1 Apr 2013 12:10:03 +0000 (14:10 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 1 Apr 2013 12:10:03 +0000 (14:10 +0200)
config/debian/cron.hourly
config/debian/dak.conf
dak/show_new.py

index e9696d46968e3a31e74795506eb37e7606b7d9b9..c82754ffa0b7d86e4d8a82e2e1022cfc4f18d775 100755 (executable)
@@ -33,6 +33,7 @@ if lockfile -r16 $LOCKFILE 2> /dev/null; then
 fi
 
 dak queue-report -n > $webdir/new.html
+dak queue-report -n -d backports-new > ${webdir}/backports-new.html
 dak queue-report -8 -d new,byhand,stable-new,oldstable-new -r $webdir/stat
 sudo -u dak-unpriv dak show-deferred -r $webdir/stat > ${webdir}/deferred.html
 dak graph -n new,byhand,stable-new,oldstable-new,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates
index 41032c66e021dea622711dbf83fc9aa5afde15cd..8208458028252a1dad116ed5ddcedf5bc22dc014 100644 (file)
@@ -48,6 +48,7 @@ Generate-Index-Diffs
 Show-New
 {
   HTMLPath "/srv/ftp.debian.org/web/new/";
+  Options::Queue "new,backports-new";
 }
 
 Show-Deferred
index 2ec2c3518bae47d43c3104eba8f54561be416d7e..1397a324f6eae35d2fd8a5b5d105fda3a1a6bdb9 100755 (executable)
@@ -223,7 +223,8 @@ def init(session):
     cnf = Config()
 
     Arguments = [('h',"help","Show-New::Options::Help"),
-                 ("p","html-path","Show-New::HTMLPath","HasArg")]
+                 ("p","html-path","Show-New::HTMLPath","HasArg"),
+                 ('q','queue','Show-New::Options::Queue','HasArg')]
 
     for i in ["help"]:
         if not cnf.has_key("Show-New::Options::%s" % (i)):
@@ -235,8 +236,9 @@ def init(session):
     if Options["help"]:
         usage()
 
+    queue_names = Options.find('Queue', 'new').split(',')
     uploads = session.query(PolicyQueueUpload) \
-        .join(PolicyQueueUpload.policy_queue).filter(PolicyQueue.queue_name == 'new') \
+        .join(PolicyQueueUpload.policy_queue).filter(PolicyQueue.queue_name.in_(queue_names)) \
         .join(PolicyQueueUpload.changes).order_by(DBChange.source)
 
     if len(changesnames) > 0: