From 4306a123cbb29ce10d1a81e6fd812ea19f054833 Mon Sep 17 00:00:00 2001 From: James Troup Date: Sat, 7 Jul 2001 21:25:52 +0000 Subject: [PATCH] Fix dinstall -n --- katie | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/katie b/katie index 7d725a23..5b92f91b 100755 --- a/katie +++ b/katie @@ -2,7 +2,7 @@ # Installs Debian packaes # Copyright (C) 2000, 2001 James Troup -# $Id: katie,v 1.51 2001-07-07 04:01:08 troup Exp $ +# $Id: katie,v 1.52 2001-07-07 21:25:52 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1219,7 +1219,8 @@ distribution.""" Subst["__STABLE_WARNING__"] = ""; mail_message = utils.TemplateSubst(Subst,open(Cnf["Dir::TemplatesDir"]+"/katie.bug-close","r").read()); utils.send_mail (mail_message, "") - Logger.log(["closing bugs"]+bugs); + if action: + Logger.log(["closing bugs"]+bugs); else: # NMU summary = summary + "Setting bugs to severity fixed: " control_message = "" @@ -1230,7 +1231,8 @@ distribution.""" Subst["__CONTROL_MESSAGE__"] = control_message; mail_message = utils.TemplateSubst(Subst,open(Cnf["Dir::TemplatesDir"]+"/katie.bug-nmu-fixed","r").read()); utils.send_mail (mail_message, "") - Logger.log(["setting bugs to fixed"]+bugs); + if action: + Logger.log(["setting bugs to fixed"]+bugs); summary = summary + "\n" return summary @@ -1353,7 +1355,7 @@ def main(): Subst = {} Subst["__ADMIN_ADDRESS__"] = Cnf["Dinstall::MyAdminAddress"]; Subst["__BUG_SERVER__"] = Cnf["Dinstall::BugServer"]; - bcc = "X-Katie: $Revision: 1.51 $" + bcc = "X-Katie: $Revision: 1.52 $" if Cnf.has_key("Dinstall::Bcc"): Subst["__BCC__"] = bcc + "\nBcc: %s" % (Cnf["Dinstall::Bcc"]); else: -- 2.39.5