[Treepkg-commits] r63 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 2 16:55:35 CEST 2008


Author: bh
Date: 2008-06-02 16:55:34 +0200 (Mon, 02 Jun 2008)
New Revision: 63

Modified:
   trunk/treepkg/builder.py
Log:
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.


Modified: trunk/treepkg/builder.py
===================================================================
--- trunk/treepkg/builder.py	2008-05-27 18:07:37 UTC (rev 62)
+++ trunk/treepkg/builder.py	2008-06-02 14:55:34 UTC (rev 63)
@@ -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])
 



More information about the Treepkg-commits mailing list