[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51
Andreas Beckmann
anbe at debian.org
Wed May 15 10:09:46 UTC 2013
The following commit has been merged in the master branch:
commit 990b64f2e4d06fbafd931e549af2a40465a38453
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Apr 7 16:28:33 2013 +0200
p-m: split mkdir
handle master-directory and section-directory separately
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/piuparts-master-backend.py b/piuparts-master-backend.py
index ca9e515..d8c0f6c 100644
--- a/piuparts-master-backend.py
+++ b/piuparts-master-backend.py
@@ -327,11 +327,14 @@ def main():
config = Config(section=section, defaults_section="global")
config.read(CONFIG_FILE)
- if not os.path.exists(os.path.join(master_directory, section)):
- os.makedirs(os.path.join(master_directory, section))
+ if not os.path.exists(master_directory):
+ os.makedirs(master_directory)
os.chdir(master_directory)
+ if not os.path.exists(section):
+ os.makedirs(section)
+
logfile = config["log-file"] or os.path.join(section, "master.log")
setup_logging(logging.DEBUG, logfile)
--
piuparts git repository
More information about the Piuparts-commits
mailing list