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)
committerSoonKyu Park <sk7.park@samsung.com>
Sat, 11 Jun 2016 07:40:09 +0000 (16:40 +0900)
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 2b4f638..f546840 100755 (executable)
@@ -621,7 +621,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']: