def action(u):
cnf = Config()
+
# changes["distribution"] may not exist in corner cases
# (e.g. unreadable changes files)
if not u.pkg.changes.has_key("distribution") or not isinstance(u.pkg.changes["distribution"], DictType):
if not Options["No-Mail"]:
print "Sending new ack."
template = os.path.join(cnf["Dir::Templates"], 'process-unchecked.new')
+ u.update_subst()
u.Subst["__SUMMARY__"] = summary
new_ack_message = utils.TemplateSubst(u.Subst, template)
utils.send_mail(new_ack_message)
u.pkg.changes_file = changes_file
u.pkg.directory = os.getcwd()
u.logger = Logger
+ origchanges = os.path.join(u.pkg.directory, u.pkg.changes_file)
# Some defaults in case we can't fully process the .changes file
u.pkg.changes["maintainer2047"] = cnf["Dinstall::MyEmailAddress"]
# Absolutize the filename to avoid the requirement of being in the
# same directory as the .changes file.
- holding.copy_to_holding(os.path.abspath(changes_file))
+ holding.copy_to_holding(origchanges)
# Relativize the filename so we use the copy in holding
# rather than the original...
valid_changes_p = u.load_changes(changespath)
else:
valid_changes_p = False
- u.rejects.extend(rejects)
+ u.rejects.extend(rejects)
if valid_changes_p:
while u.reprocess: