diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-27 14:35:31 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2019-10-27 11:34:43 +0100 |
commit | ff9ff7e2b54785acc733da2ca78d0da15bb5d681 (patch) | |
tree | e5e361b463db0bf29fdd9b0bb10283e549a146be /gbp/scripts/common | |
parent | 62485247b61090f8bd41a8bf419872db36fa12dc (diff) |
Use UpstreamSource for additional tarballs as well
This will help on upstream tarball signatures as well as
improving additional tarball handling.
Diffstat (limited to 'gbp/scripts/common')
-rw-r--r-- | gbp/scripts/common/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/scripts/common/__init__.py b/gbp/scripts/common/__init__.py index 023d2b84..b67e44c7 100644 --- a/gbp/scripts/common/__init__.py +++ b/gbp/scripts/common/__init__.py @@ -22,6 +22,7 @@ import traceback from gbp.errors import GbpError from gbp.deb import DebianPkgPolicy from gbp.pkg import Archive +from gbp.deb.upstreamsource import DebianAdditionalTarball class ExitCodes(object): @@ -51,6 +52,7 @@ def is_download(args): return False +# FIXME: this could become a method of DebianUpstreamSource def get_component_tarballs(name, version, tarball, components): """ Figure out the paths to the component tarballs based on the main @@ -64,7 +66,7 @@ def get_component_tarballs(name, version, tarball, components): comp_type, os.path.dirname(tarball), component) - tarballs.append((component, cname)) + tarballs.append(DebianAdditionalTarball(cname, component)) if not os.path.exists(cname): raise GbpError("Can not find component tarball %s" % cname) return tarballs |