Mercurial > treepkg
changeset 105:b4226070371f
Use cmdexpand in bin/initpbuilder.py
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 04 Mar 2008 14:18:56 +0000 |
parents | c0c93d242438 |
children | 66cbfc772f84 |
files | bin/initpbuilder.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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():