diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-08-04 14:24:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-08-04 14:24:18 +0100 |
| commit | b2b5e9f825ba5b045f371ac8f83cb6d65a17260e (patch) | |
| tree | f3305ca7d2b1d13a82f95728e2e00d85a4e6da52 /cscript | |
| parent | 38ec06fc927bff26ed78e45358d847ebb4e484de (diff) | |
cdist fix.
Diffstat (limited to 'cscript')
| -rw-r--r-- | cscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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') |
