[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Andreas Beckmann
debian at abeckmann.de
Fri Dec 23 10:26:43 UTC 2011
The following commit has been merged in the master branch:
commit 22365c9d892626b58fb5084b6a9d3f7a839836aa
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Sun Nov 6 13:42:32 2011 +0100
create /etc/dpkg/dpkg.cfg.d/ if missing
/etc/dpkg/dpkg.cfg.d/ does not exist on lenny, so create the missing
directory before installing a file there
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts.py b/piuparts.py
index c3321fd..84c7d06 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -853,6 +853,8 @@ class Chroot:
lines.append('force-confdef\n')
logging.info("Warning: dpkg has been configured to use the force-confdef option. This will hide problems, see #466118.")
if lines:
+ if not os.path.exists(self.relative("etc/dpkg/dpkg.cfg.d")):
+ os.mkdir(self.relative("etc/dpkg/dpkg.cfg.d"))
create_file(self.relative("etc/dpkg/dpkg.cfg.d/piuparts"),
"".join(lines))
--
piuparts git repository
More information about the Piuparts-commits
mailing list