diff bin/initpbuilder.py @ 105:b4226070371f

Use cmdexpand in bin/initpbuilder.py
author Bernhard Herzog <bh@intevation.de>
date Tue, 04 Mar 2008 14:18:56 +0000
parents e6cfe3b80956
children bfcb2bbf9a52
line wrap: on
line diff
--- a/bin/initpbuilder.py	Tue Mar 04 14:10:39 2008 +0000
+++ b/bin/initpbuilder.py	Tue Mar 04 14:18:56 2008 +0000
@@ -23,6 +23,7 @@
 from treepkg.readconfig import read_config
 from treepkg.util import ensure_directory, writefile
 from treepkg.run import call
+from treepkg.cmdexpand import cmdexpand
 
 
 pbuilderrc_template = '''\
@@ -80,13 +81,14 @@
     # turn the extra-pkg directory into a proper deb archive
     print "turning the extra-pkg dir into a debian archive"
     extra_pkgdir = replacements["extra-pkgdir"]
-    call(["apt-ftparchive", "packages", "."],
+    call(cmdexpand("apt-ftparchive packages ."),
          stdout=open(os.path.join(extra_pkgdir, "Packages"), "w"),
          cwd=extra_pkgdir)
 
     # create the base.tgz chroot
     print "running pbuilder create"
-    call(root_cmd + ["pbuilder", "create", "--configfile", pbuilderrc])
+    call(cmdexpand("@root_cmd pbuilder create --configfile $pbuilderrc",
+                   **locals()))
 
 
 def parse_commandline():
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)