Revert "buildpackage-rpm: always create tarball for native packages"
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 2 Mar 2015 15:38:44 +0000 (17:38 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Mar 2015 15:37:00 +0000 (17:37 +0200)
Fixes: DEVT-215

This reverts commit efc490c4a8da5ce7a0bd1bf4a20009c3a445bb47.

Change-Id: I2109f7ff48384a3b1190a73a3471bdc67f6d2427
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index dcfa3ac..b8c1e0d 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']: