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>
Tue, 7 Jan 2014 14:21:30 +0000 (16:21 +0200)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index 4f8484ce4b91e5ffe356d4c25bed1236342c5832..20e3b2d447a0dc50f43ad519cf9526329b384f75 100755 (executable)
@@ -544,7 +544,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']: