projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc8ada
)
Ignore ExcludeArch and BuildArch while parsing spec file
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Thu, 10 May 2012 07:03:48 +0000
(15:03 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Thu, 10 May 2012 07:03:48 +0000
(15:03 +0800)
gitbuildsys/utils.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/utils.py
b/gitbuildsys/utils.py
index
9e64c3f
..
e10b455
100644
(file)
--- a/
gitbuildsys/utils.py
+++ b/
gitbuildsys/utils.py
@@
-119,6
+119,8
@@
def parse_spec(spec_path, macro):
wf.write(line)
wf.close()
+ runner.quiet("sed -i \'/ExclusiveArch/d\' %s" % os.path.join(tmp_dir, 'tmp.spec'))
+ runner.quiet("sed -i \'/BuildArch/d\' %s" % os.path.join(tmp_dir, 'tmp.spec'))
outs = runner.outs(rpmb_cmdline, catch=3)
# clean up