diff options
author | Zhang Qiang <qiang.z.zhang@intel.com> | 2013-04-01 16:49:54 +0800 |
---|---|---|
committer | Zhang Qiang <qiang.z.zhang@intel.com> | 2013-04-01 21:18:50 +0800 |
commit | 2d2c204fed2a40fba23fe8379ac49357e3904cc1 (patch) | |
tree | 2aa9f490f9a558565756c4c9dbee6fc14e72b92c | |
parent | 1e9a35c141d4a932b27dd7f79facc308be9c9513 (diff) | |
download | git-buildpackage-2d2c204fed2a40fba23fe8379ac49357e3904cc1.tar.gz git-buildpackage-2d2c204fed2a40fba23fe8379ac49357e3904cc1.tar.bz2 git-buildpackage-2d2c204fed2a40fba23fe8379ac49357e3904cc1.zip |
don't re-create tar ball if already exist.
without this patch, tall ball always be re-created even if already
exist for native package.
Change-Id: Ie33569c3da77013bf2895c0f5f9b0d9752cf906f
-rwxr-xr-x | gbp/scripts/buildpackage_rpm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py index 8e39910c..5df9a61d 100755 --- a/gbp/scripts/buildpackage_rpm.py +++ b/gbp/scripts/buildpackage_rpm.py @@ -542,7 +542,8 @@ def main(argv): # Get/build the orig tarball if is_native(repo, options): - if spec.orig_src: + orig_file = spec.orig_src['filename'] + if spec.orig_src and not RpmPkgPolicy.has_orig(orig_file, source_dir): # 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']: |