Ignore ExcludeArch and BuildArch while parsing spec file
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 10 May 2012 07:03:48 +0000 (15:03 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 10 May 2012 07:03:48 +0000 (15:03 +0800)
gitbuildsys/utils.py

index 9e64c3f..e10b455 100644 (file)
@@ -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