X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftransitions.py;h=2bd32381afc1b010caff11babb2af57c0644bed5;hb=94728eaa0bfe92f0eb50528a513fafdb2540d831;hp=4c4ac78ee8a0ed5cb4ad44d9deaf3894a66a87fb;hpb=27a8450d90f43e88633e27c6170f54f93d4ee4ed;p=dak.git diff --git a/dak/transitions.py b/dak/transitions.py index 4c4ac78e..2bd32381 100755 --- a/dak/transitions.py +++ b/dak/transitions.py @@ -287,8 +287,8 @@ def write_transitions_from_file(from_file): """ # Lets check if from_file is in the directory we expect it to be in - if not os.path.abspath(from_file).startswith(Cnf["Transitions::TempPath"]): - print "Will not accept transitions file outside of %s" % (Cnf["Transitions::TempPath"]) + if not os.path.abspath(from_file).startswith(Cnf["TempPath::TempPath"]): + print "Will not accept transitions file outside of %s" % (Cnf["TempPath::TempPath"]) sys.exit(3) if Options["sudo"]: @@ -318,7 +318,7 @@ def temp_transitions_file(transitions): sudo-ed script and would be unreadable if it has default mkstemp mode """ - (fd, path) = tempfile.mkstemp("", "transitions", Cnf["Transitions::TempPath"]) + (fd, path) = tempfile.mkstemp("", "transitions", Cnf["TempPath::TempPath"]) os.chmod(path, 0644) f = open(path, "w") yaml.dump(transitions, f, default_flow_style=False) @@ -577,13 +577,13 @@ def main(): (Cnf["Dinstall::Reject::ReleaseTransitions"])) sys.exit(1) # Also check if our temp directory is defined and existant - temppath = Cnf.get("Transitions::TempPath", "") + temppath = Cnf.get("TempPath::TempPath", "") if temppath == "": - utils.warn("Transitions::TempPath not defined") + utils.warn("TempPath::TempPath not defined") sys.exit(1) if not os.path.exists(temppath): utils.warn("Temporary path %s not found." % - (Cnf["Transitions::TempPath"])) + (Cnf["TempPath::TempPath"])) sys.exit(1) if Options["import"]: