提交 92929b13 编写于 作者: M Mark Hymers

Simplify config path

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 b8140e33
......@@ -29,10 +29,7 @@ Dinstall
CloseBugs "false";
OverrideDisparityCheck "false";
DefaultSuite "lenny-backports";
Reject
{
ReleaseTransitions "/srv/backports-master.debian.org/hints/transitions.yaml";
};
ReleaseTransitions "/srv/backports-master.debian.org/hints/transitions.yaml";
// If set, only send mails to addresses listed there.
// format of entries: one entry per line. Either an email address directly, or a regular expression,
// prefixed by "RE:". Examples: "jane.doe@domain.com" or "RE:jane[^@]@domain.com", where the first will
......
......@@ -21,10 +21,7 @@ Dinstall
OverrideDisparityCheck "true";
DefaultSuite "unstable";
LintianTags "/srv/ftp-master.debian.org/dak/config/debian/lintian.tags";
Reject
{
ReleaseTransitions "/srv/ftp.debian.org/web/transitions.yaml";
};
ReleaseTransitions "/srv/ftp.debian.org/web/transitions.yaml";
// if you setup an own dak repository and want to upload Debian packages you most possibly want
// to set the following option to a real path/filename and then enter those mail addresses that
// you want to be able to receive mails generated by your dak installation. This avoids spamming
......
......@@ -255,7 +255,7 @@ def write_transitions(from_trans):
"""
trans_file = Cnf["Dinstall::Reject::ReleaseTransitions"]
trans_file = Cnf["Dinstall::ReleaseTransitions"]
trans_temp = trans_file + ".tmp"
trans_lock = lock_file(trans_file)
......@@ -328,7 +328,7 @@ def temp_transitions_file(transitions):
def edit_transitions():
""" Edit the defined transitions. """
trans_file = Cnf["Dinstall::Reject::ReleaseTransitions"]
trans_file = Cnf["Dinstall::ReleaseTransitions"]
edit_file = temp_transitions_file(load_transitions(trans_file))
editor = os.environ.get("EDITOR", "vi")
......@@ -568,13 +568,13 @@ def main():
init()
# Check if there is a file defined (and existant)
transpath = Cnf.get("Dinstall::Reject::ReleaseTransitions", "")
transpath = Cnf.get("Dinstall::ReleaseTransitions", "")
if transpath == "":
utils.warn("Dinstall::Reject::ReleaseTransitions not defined")
utils.warn("Dinstall::ReleaseTransitions not defined")
sys.exit(1)
if not os.path.exists(transpath):
utils.warn("ReleaseTransitions file, %s, not found." %
(Cnf["Dinstall::Reject::ReleaseTransitions"]))
(Cnf["Dinstall::ReleaseTransitions"]))
sys.exit(1)
# Also check if our temp directory is defined and existant
temppath = Cnf.get("Dir::TempPath", "")
......
......@@ -1840,7 +1840,7 @@ class Upload(object):
# Also only check if there is a file defined (and existant) with
# checks.
transpath = cnf.get("Dinstall::Reject::ReleaseTransitions", "")
transpath = cnf.get("Dinstall::ReleaseTransitions", "")
if transpath == "" or not os.path.exists(transpath):
return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册