提交 6f34c42b 编写于 作者: F Frank Lichtenheld

Fix queue-report

Since we have no .dak files anymore, parse the changes file directly.
Signed-off-by: NFrank Lichtenheld <djpig@debian.org>
上级 e4a07438
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册