From: Mark Hymers <mhy@debian.org>
Date: Sun, 2 Aug 2009 14:29:08 +0000 (+0100)
Subject: p-u fixes
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=762067cb0a832534b5b421d145e9d4926c2687ad;p=dak.git

p-u fixes

Signed-off-by: Mark Hymers <mhy@debian.org>
---

diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py
index 3a9f2ef2..67347025 100755
--- a/dak/process_unchecked.py
+++ b/dak/process_unchecked.py
@@ -243,6 +243,7 @@ def package_to_queue(u, summary, short_summary, queue, perms=0660, build=True, a
     # Send accept mail, announce to lists and close bugs
     if announce and not cnf["Dinstall::Options::No-Mail"]:
         template = os.path.join(cnf["Dir::Templates"], announce)
+        u.update_subst()
         u.Subst["__SUITE__"] = ""
         mail_message = utils.TemplateSubst(u.Subst, template)
         utils.send_mail(mail_message)
@@ -434,6 +435,7 @@ def process_it(changes_file):
     cnf = Config()
 
     u = Upload()
+    u.pkg.changes_file = changes_file
 
     # Some defaults in case we can't fully process the .changes file
     u.pkg.changes["maintainer2047"] = cnf["Dinstall::MyEmailAddress"]