buildpackage-rpm: listen to --no-create-orig option for native packages, too
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 2 Apr 2013 07:50:08 +0000 (10:50 +0300)
committerJun Wang <junbill.wang@samsung.com>
Wed, 27 Jan 2016 14:47:26 +0000 (22:47 +0800)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index 7e10c46..802ac3f 100755 (executable)
@@ -611,7 +611,7 @@ def main(argv):
 
             # Get/build the orig tarball
             if is_native(repo, options):
-                if spec.orig_src:
+                if spec.orig_src and not options.no_create_orig:
                     # Just build source archive from the exported tree
                     gbp.log.info("Creating (native) source archive %s from '%s'" % (spec.orig_src['filename'], tree))
                     if spec.orig_src['compression']: