]> git.decadent.org.uk Git - dak.git/commitdiff
Fix queue-report
authorFrank Lichtenheld <djpig@debian.org>
Fri, 30 Oct 2009 22:53:34 +0000 (22:53 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Fri, 30 Oct 2009 22:53:34 +0000 (22:53 +0000)
Since we have no .dak files anymore, parse the changes file directly.

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
dak/queue_report.py

index 8e338e526181c9d5d16dd4737ae7b36e6dce725e..c9013a5239c956eb54c5c60e9ed656ca6aa9fe2d 100755 (executable)
@@ -39,7 +39,7 @@ import glob, os, stat, sys, time
 import apt_pkg
 
 from daklib import utils
-from daklib.changes import Changes
+from daklib.queue import Upload
 from daklib.dbconn import DBConn, has_new_comment
 from daklib.textutils import fix_maintainer
 from daklib.dak_exceptions import *
@@ -301,9 +301,9 @@ def process_changes_files(changes_files, type, log):
     # Read in all the .changes files
     for filename in changes_files:
         try:
-            c = Changes()
-            c.load_dot_dak(filename)
-            cache[filename] = copy(c.changes)
+            u = Upload()
+            u.load_changes(filename)
+            cache[filename] = copy(u.pkg.changes)
             cache[filename]["filename"] = filename
         except Exception, e:
             print "WARNING: Exception %s" % e