From: Joerg Jaspert Date: Thu, 30 Sep 2010 10:19:51 +0000 (+0200) Subject: Merge remote branch 'tolimar/rm-close-bugs' into merge X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0728f1b55afc80016fe27fada8dc78e635d26c60;hp=5d965c34b35048f8a8fab0a7a11f2943d833952d;p=dak.git Merge remote branch 'tolimar/rm-close-bugs' into merge * tolimar/rm-close-bugs: Make the wnpp parse more robust for missing files Only log, if there is something to log Make it the qa wnpp list download more fault tolerant Fix comment of cron.daily (copy and paste from cron.monthly) Use different mail templates to close removal bugs, if related bugs got closed Refresh the wnpp bugs list on a daily basis Also close wnpp bugs on package removal Signed-off-by: Joerg Jaspert --- diff --git a/config/backports/dak.conf b/config/backports/dak.conf index b9dd0a55..57f839d7 100644 --- a/config/backports/dak.conf +++ b/config/backports/dak.conf @@ -32,7 +32,7 @@ Dinstall SkipTime 300; // If defined then mails to close bugs are sent to the bugserver. CloseBugs "false"; - OverrideDisparityCheck "true"; + OverrideDisparityCheck "false"; DefaultSuite "lenny-backports"; Reject { diff --git a/dak/rm.py b/dak/rm.py index 936468cf..7377f23b 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -669,11 +669,11 @@ def main (): logfile822.write(" " + str(bug)) logfile.write("\n") logfile822.write("\n") - + mail_message = utils.TemplateSubst(Subst_close_other,cnf["Dir::Templates"]+"/rm.bug-close-related") if Subst_close_other["__BUG_NUMBER_ALSO__"]: utils.send_mail(mail_message) - + logfile.write("=========================================================================\n") logfile.close() diff --git a/daklib/utils.py b/daklib/utils.py index 4744f6a2..7ed4089a 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1548,7 +1548,7 @@ def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/w returns a dict associating source package name with a list of open wnpp bugs (Yes, there might be more than one) """ - + line = [] try: f = open(file) @@ -1571,4 +1571,3 @@ def parse_wnpp_bug_file(file = "/srv/ftp-master.debian.org/scripts/masterfiles/w bugs.append(bug_no) wnpp[source] = bugs return wnpp - diff --git a/templates/rm.bug-close-with-related b/templates/rm.bug-close-with-related index 6a8f8c83..0dcc1b41 100644 --- a/templates/rm.bug-close-with-related +++ b/templates/rm.bug-close-with-related @@ -1,6 +1,6 @@ From: __RM_ADDRESS__ To: __BUG_NUMBER__-close@__BUG_SERVER__ -__CC__ +__CC__ __BCC__ X-Debian: DAK MIME-Version: 1.0