diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-03 17:54:33 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-03 17:54:33 -0300 |
commit | 3b99b64630a7c6f165b15905733e007b229d7381 (patch) | |
tree | b64e4f082005cc1f71367c0520a16b8148d9902b /gbp/scripts/export_orig.py | |
parent | 88e74cfd8cae684ae4b3320f9da30e89497479d2 (diff) |
DebianSource: Split out upstream_tarball_names
to generate names of all upstream tarballs
Diffstat (limited to 'gbp/scripts/export_orig.py')
-rwxr-xr-x | gbp/scripts/export_orig.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gbp/scripts/export_orig.py b/gbp/scripts/export_orig.py index 76cdf7ab..e6ef7986 100755 --- a/gbp/scripts/export_orig.py +++ b/gbp/scripts/export_orig.py @@ -63,11 +63,7 @@ def prepare_upstream_tarballs(repo, source, options, tarball_dir, output_dir): options.comp_type, source, options.tarball_dir) - - orig_files = [source.upstream_tarball_name(options.comp_type)] - if options.components: - orig_files += [source.upstream_tarball_name(options.comp_type, c) for c in options.components] - + orig_files = source.upstream_tarball_names(options.comp_type, options.components) # look in tarball_dir first, if found force a symlink to it if options.tarball_dir: gbp.log.debug("Looking for orig tarballs '%s' at '%s'" % (", ".join(orig_files), tarball_dir)) @@ -210,7 +206,7 @@ def git_archive_build_orig(repo, source, output_dir, options): def guess_comp_type(repo, comp_type, source, tarball_dir): - """Guess compression type to use for to be built upstream tarball""" + """Guess compression type to use for the to be built upstream tarball""" if comp_type != 'auto': comp_type = Compressor.Aliases.get(comp_type, comp_type) if comp_type not in Compressor.Opts: |