From: Markus Lehtonen Date: Fri, 13 Jun 2014 10:31:48 +0000 (+0300) Subject: buildpackage-rpm: always create tarball for native packages X-Git-Tag: tizen/0.6.15-20140828~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efc490c4a8da5ce7a0bd1bf4a20009c3a445bb47;p=tools%2Fgit-buildpackage.git buildpackage-rpm: always create tarball for native packages 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. Change-Id: I3d4a46150a017de499d19ec4ae168e6f642325bd Signed-off-by: Markus Lehtonen --- diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py index d288eec7..5a462966 100755 --- a/gbp/scripts/buildpackage_rpm.py +++ b/gbp/scripts/buildpackage_rpm.py @@ -617,7 +617,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']: