diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-12-24 01:50:50 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-12-24 01:55:28 +0100 |
commit | 6382d56b09f88a1d9d62baf8c7969703126b6672 (patch) | |
tree | 84e5ad2cab33ec1ce4042c9227ede0593e8dd30d /examples | |
parent | 4c0cda98e98098f40d18729b275eff3d8c668d11 (diff) |
gbp-posttag-push: strip epoch when looking for changes file
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gbp-posttag-push | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push index 3aca7bfa..1884c458 100755 --- a/examples/gbp-posttag-push +++ b/examples/gbp-posttag-push @@ -126,6 +126,7 @@ def parse_args(argv): def find_changes(sourcename, version): glob_ex = "../%s_%s_*.changes" % (sourcename, version) gbp.log.info("Looking for changes at %s" % glob_ex) + # FIXME: verify version in .changes file return glob.glob(glob_ex) @@ -196,7 +197,7 @@ def main(argv): repo.push(dest, upstream_sha1, options.upstream_branch) if options.upload_cmd: - version = repo.tag_to_version(env.tag, options.debian_tag) + version = repo.tag_to_version(env.tag, options.debian_tag).split(':')[-1] changes = find_changes(source.sourcepkg, version) if len(changes): retval = upload_changes(changes, options.upload_cmd, options.dryrun) |