- reason_contents = file_to_string(reason_filename);
-
- # Fix the maintainer address to be RFC-822 compatible
- (changes["maintainer822"], changes["maintainername"], changes["maintaineremail"]) = utils.fix_maintainer (changes["maintainer"])
-
- if Cnf["Shania::Options::No-Action"]:
- print "Would send a reminder email to %s." % (changes["maintainer822"]);
- else: # FIXME: need msg to be configurable
- mail_message = """Return-Path: %s
-From: %s
-To: %s
-Bcc: troup@auric.debian.org
-Subject: Reminder: %s was rejected
-
-This is an automated reminder. Your Debian upload was rejected. Its
-files are in %s/REJECT on %s.
-
-If the upload has been superceded, please delete it. If not, please
-correct the error. You do not have to reupload good files; simply
-move them from incoming/REJECT to incoming. Do erase any bad files.
-This reminder is sent on Monday mornings. After two reminders, the
-upload is deleted.
-
-----------------------------------------------------------------------
-%s
-----------------------------------------------------------------------
-
-----------------------------------------------------------------------
-%s
-----------------------------------------------------------------------
-
---
-Debian distribution maintenance software
-""" % (Cnf["Dinstall::MyEmailAddress"], Cnf["Dinstall::MyEmailAddress"], changes["maintainer822"], changes_filename, Cnf["Dir::IncomingDir"], Cnf["Archive::%s::OriginServer" % (utils.where_am_i())], changes_contents, reason_contents)
- utils.send_mail(mail_message, "");
- if Cnf["Shania::Options::Verbose"]:
- print "Sent reminder email to %s." % (changes["maintainer822"]);
- else:
- # Ensure the files aren't deleted
- keys = [];
- for i in (files.keys(), dsc_files.keys(), [changes_filename]):
- keys.extend(i);
- for key in keys:
- if all_files.has_key(key):
- del all_files[key];
-
- # Anthing left at this stage is not referenced by a .changes or
- # .dsc and should be deleted if old enough.
+ # Ensure all the files we've seen aren't deleted
+ keys = [];
+ for i in (files.keys(), dsc_files.keys(), [changes_filename]):
+ keys.extend(i);
+ for key in keys:
+ if all_files.has_key(key):
+ if Options["Verbose"]:
+ print "Skipping, has parents, '%s'." % (key);
+ del all_files[key];
+
+ # Anthing left at this stage is not referenced by a .changes (or
+ # a .dsc) and should be deleted if old enough.