from daklib.regexes import re_default_answer
from daklib.summarystats import SummaryStats
from daklib.holding import Holding
+from daklib.config import Config
from types import *
"override-distribution", "version", "directory"]:
cnf["Dinstall::Options::%s" % (i)] = ""
- changes_files = apt_pkg.ParseCommandLine(cnf, Arguments, sys.argv)
+ changes_files = apt_pkg.ParseCommandLine(cnf.Cnf, Arguments, sys.argv)
Options = cnf.SubTree("Dinstall::Options")
if Options["Help"]:
# Send accept mail, announce to lists and close bugs
if announce and not cnf["Dinstall::Options::No-Mail"]:
template = os.path.join(cnf["Dir::Templates"], announce)
+ u.update_subst()
u.Subst["__SUITE__"] = ""
mail_message = utils.TemplateSubst(u.Subst, template)
utils.send_mail(mail_message)
cnf = Config()
u = Upload()
+ u.pkg.changes_file = changes_file
# Some defaults in case we can't fully process the .changes file
u.pkg.changes["maintainer2047"] = cnf["Dinstall::MyEmailAddress"]