From f4d1becb6034183173e137eb338b69370b497026 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 30 Oct 2012 17:12:49 -0500 Subject: export.py: Fix BuildRoot for prereleases Signed-off-by: Sol Jerome --- tools/export.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/export.py') 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', -- cgit v1.2.3-1-g7c22