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)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:46:24 +0000 (14:46 +0200)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index 9c86c07..ae4e494 100755 (executable)
@@ -552,7 +552,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']: