diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-08-04 20:14:03 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-08-04 21:21:58 +0200 |
commit | 51620e95d11152d3a352b60c45abf86b13464010 (patch) | |
tree | 22cf81641868c5861d5bd6d3e62fcc561f57de25 /gbp/scripts | |
parent | 43a0367774bc2c31099f0fdbee358cc783e6eed6 (diff) |
import-orig: export version information to postimport hook
Closes: #833429
Diffstat (limited to 'gbp/scripts')
-rw-r--r-- | gbp/scripts/import_orig.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py index e344926d..cbe5986d 100644 --- a/gbp/scripts/import_orig.py +++ b/gbp/scripts/import_orig.py @@ -298,8 +298,13 @@ def debian_branch_merge(repo, tag, version, options): cp = ChangeLog(filename='debian/changelog') if cp.has_epoch(): epoch = '%s:' % cp.epoch - info = {'version': "%s%s-1" % (epoch, version)} - env = {'GBP_BRANCH': options.debian_branch} + debian_version = "%s%s-1" % (epoch, version) + info = {'version': debian_version} + env = {'GBP_BRANCH': options.debian_branch, + 'GBP_TAG': tag, + 'GBP_UPSTREAM_VERSION': version, + 'GBP_DEBIAN_VERSION': debian_version, + } gbpc.Command(format_str(options.postimport, info), extra_env=env, shell=True)() |