summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-08-04 14:24:18 +0100
committerCarl Hetherington <cth@carlh.net>2014-08-04 14:24:18 +0100
commitb2b5e9f825ba5b045f371ac8f83cb6d65a17260e (patch)
treef3305ca7d2b1d13a82f95728e2e00d85a4e6da52 /cscript
parent38ec06fc927bff26ed78e45358d847ebb4e484de (diff)
cdist fix.
Diffstat (limited to 'cscript')
-rw-r--r--cscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/cscript b/cscript
index 12b4fde70..13382b266 100644
--- a/cscript
+++ b/cscript
@@ -223,8 +223,8 @@ def package_centos(target, cpu, version):
os.makedirs('%s/rpmbuild/SPECS' % target.directory)
os.makedirs('%s/rpmbuild/SRPMS' % target.directory)
- f = open('%s/.rpmmacros' % target.dir_in_chroot, 'w')
- print >>f,"%%_topdir %srpmbuild" % target.dir_in_chroot
+ f = open(os.path.expanduser('~/.rpmmacros', 'w')
+ print >>f,os.path.expanduser("%%_topdir ~/srpmbuild")
f.close()
target.command('./waf dist')