summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
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')