# HG changeset patch # User Bernhard Herzog # Date 1212418534 0 # Node ID 1bcdc8934b277960201531fe5352b418c91b108f # Parent 93fcd0b9e82cc3fd50e308bff59c3e292ee2ee6e In PBuilder.run_script create the log file before starting pbuilder to make sure the file is owned by the user running treepkg and not by root. diff -r 93fcd0b9e82c -r 1bcdc8934b27 treepkg/builder.py --- a/treepkg/builder.py Tue May 27 18:07:37 2008 +0000 +++ b/treepkg/builder.py Mon Jun 02 14:55:34 2008 +0000 @@ -106,6 +106,11 @@ args = [] if logfile: args.extend(["--logfile", logfile]) + # create the logfile. This makes sure that it is owned by + # the user the tree packager is running as and not root, as + # would be the case when it is created indirectly by + # pbuilder + open(logfile, "w").close() for mount in bindmounts: args.extend(["--bindmounts", mount])