summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-10-30 17:12:49 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-10-30 17:12:49 -0500
commitf4d1becb6034183173e137eb338b69370b497026 (patch)
tree20fef759b118903e182e0b0a8f01f83f87e9a33a
parentbf8deeb3fa6151995b4ad1fe206da4c4a31f0f9b (diff)
downloadbcfg2-f4d1becb6034183173e137eb338b69370b497026.tar.gz
bcfg2-f4d1becb6034183173e137eb338b69370b497026.tar.bz2
bcfg2-f4d1becb6034183173e137eb338b69370b497026.zip
export.py: Fix BuildRoot for prereleases
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
-rwxr-xr-xtools/export.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/export.py b/tools/export.py
index 8604c7f2f..d8a534376 100755
--- a/tools/export.py
+++ b/tools/export.py
@@ -252,6 +252,16 @@ E.G. 1.2.0pre1 is a valid version.
version_info['build'],
startswith=True,
dryrun=options.dryrun)
+ find_and_replace('misc/bcfg2.spec', 'BuildRoot',
+ 'BuildRoot: %%{_tmppath}/%%{name}-%%{version}%s-%%{release}-root-%%(%%{__id_u} -n)\n' %
+ version_info['build'],
+ startswith=True,
+ dryrun=options.dryrun)
+ find_and_replace('misc/bcfg2-selinux.spec', 'BuildRoot',
+ 'BuildRoot: %%{_tmppath}/%%{name}-%%{version}%s-%%{release}-root-%%(%%{__id_u} -n)\n' %
+ version_info['build'],
+ startswith=True,
+ dryrun=options.dryrun)
# fix pre problem noted in
# http://trac.mcs.anl.gov/projects/bcfg2/ticket/1129
find_and_replace('misc/bcfg2.spec',