[Treepkg-commits] r282 - branches/scratchbox/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 16 10:46:29 CEST 2010


Author: bricks
Date: 2010-04-16 10:46:29 +0200 (Fri, 16 Apr 2010)
New Revision: 282

Modified:
   branches/scratchbox/treepkg/sbuilder.py
Log:
finally it is possible to build packages for maemo


Modified: branches/scratchbox/treepkg/sbuilder.py
===================================================================
--- branches/scratchbox/treepkg/sbuilder.py	2010-04-16 08:29:31 UTC (rev 281)
+++ branches/scratchbox/treepkg/sbuilder.py	2010-04-16 08:46:29 UTC (rev 282)
@@ -100,10 +100,10 @@
         args = []
         if logfile is not None:
 	    logdir = os.path.dirname(logfile)
-            args.extend(["--buildlog=", logfile])
-            args.extend(["--logdir=", logdir])
+            args.extend(["--buildlog=%s" % logfile])
+            args.extend(["--logdir=%s" % logdir])
         if binary_dir is not None:
-            args.extend(["--resultdir=", binary_dir])
+            args.extend(["--resultdir=%s" % binary_dir])
             util.ensure_directory(binary_dir)
 #        for mount in bindmounts:
 #            args.extend(["--bindmounts", mount])
@@ -118,11 +118,11 @@
                            builderconfig=self.builderconfig,
                            dsc=dsc_file, args=args)
         logging.debug("sbdmock cmd: %s" % cmd)
-#         run.call(cmdexpand, suppress_output=True, extra_env=extra_env)
-#        if logfile is not None and os.path.exists(logfile):
-#            run.call(cmdexpand("gzip -9 $logfile", logfile=logfile))
-#        # remove the source package files put into the binary directory
-#        # by pbuilder
+        run.call(cmd, suppress_output=True, extra_env=extra_env)
+        if logfile is not None and os.path.exists(logfile):
+            run.call(cmdexpand("gzip -9 $logfile", logfile=logfile))
+        # remove the source package files put into the binary directory
+        # by pbuilder
 #        if binary_dir is not None:
 #            for filename in os.listdir(binary_dir):
 #                if os.path.splitext(filename)[1] not in (".deb", ".changes"):



More information about the Treepkg-commits mailing list