buildpackage-rpm: always create tarball for native packages
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 13 Jun 2014 10:31:48 +0000 (13:31 +0300)
committerJun Wang <junbill.wang@samsung.com>
Wed, 27 Jan 2016 17:08:47 +0000 (01:08 +0800)
If the package is native, always (re-)create the source tarball, even if
--git-no-create-orig is used. Not creating the tarball does not make
much sense (and most probably just causes problems and confusion): for
native packages there is no place for external tarball and no patches so
we need to always have the correct sources (i.e. the exported revision)
in the tarball.

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

index 802ac3f..7e10c46 100755 (executable)
@@ -611,7 +611,7 @@ def main(argv):
 
             # Get/build the orig tarball
             if is_native(repo, options):
-                if spec.orig_src and not options.no_create_orig:
+                if spec.orig_src:
                     # 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']: