]> git.decadent.org.uk Git - dak.git/commitdiff
Fix dinstall -n
authorJames Troup <james@nocrew.org>
Sat, 7 Jul 2001 21:25:52 +0000 (21:25 +0000)
committerJames Troup <james@nocrew.org>
Sat, 7 Jul 2001 21:25:52 +0000 (21:25 +0000)
katie

diff --git a/katie b/katie
index 7d725a23c0ddcb207008736ece3708cc2083f8e7..5b92f91b9415deebdeeb92a72497631293fa78ec 100755 (executable)
--- a/katie
+++ b/katie
@@ -2,7 +2,7 @@
 
 # Installs Debian packaes
 # Copyright (C) 2000, 2001  James Troup <james@nocrew.org>
-# $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: