#!/usr/bin/env python
# General purpose package removal tool for ftpmaster
-# Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
-# $Id: melanie,v 1.23 2002-02-22 02:19:26 troup Exp $
+# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
+# $Id: melanie,v 1.26 2002-05-18 23:54:51 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
for i in source_packages.keys():
filename = string.join(source_packages[i], '/');
try:
- dsc = utils.parse_changes(filename, 0);
+ dsc = utils.parse_changes(filename);
except utils.cant_open_exc:
utils.warn("couldn't open '%s'." % (filename));
continue;
Subst["__BCC__"] = "Bcc: " + string.join(bcc, ", ");
else:
Subst["__BCC__"] = "X-Filler: 42";
- Subst["__CC__"] = "X-Melanie: $Revision: 1.23 $";
+ Subst["__CC__"] = "X-Melanie: $Revision: 1.26 $";
if carbon_copy:
Subst["__CC__"] = Subst["__CC__"] + "\nCc: " + string.join(carbon_copy, ", ");
Subst["__SUITE_LIST__"] = suites_list;
Subst["__PRIMARY_MIRROR__"] = Archive["PrimaryMirror"];
for bug in string.split(Options["Done"]):
Subst["__BUG_NUMBER__"] = bug;
- mail_message = utils.TemplateSubst(Subst,open(Cnf["Dir::TemplatesDir"]+"/melanie.bug-close","r").read());
+ mail_message = utils.TemplateSubst(Subst,Cnf["Dir::Templates"]+"/melanie.bug-close");
utils.send_mail (mail_message, "")
logfile.write("=========================================================================\n");