diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-05-28 03:18:05 +0200 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-05-28 03:18:05 +0200 |
commit | 9cddf82d5dcbfb4860b5612bc7800c3f63a01ffd (patch) | |
tree | a9fd8b77703b36414916d52385e111dfb4c81806 /gbp | |
parent | 44330a25a71415334516e3e00443dcb0434189b9 (diff) | |
parent | 2761704e7845cd8c829038816d539277f1f136bd (diff) |
Merge ../git-buildpackage into locals/import-orig-by-index
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/deb_utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gbp/deb_utils.py b/gbp/deb_utils.py index 8c4fd917..f4bc854b 100644 --- a/gbp/deb_utils.py +++ b/gbp/deb_utils.py @@ -18,7 +18,11 @@ def parse_changelog(changelog): return None cp = email.message_from_string(output) if '-' in cp['Version']: - cp['Upstream-Version'], cp['Debian-Version'] = cp['Version'].rsplit('-', 1) + upstream_version, cp['Debian-Version'] = cp['Version'].rsplit('-', 1) + if ':' in upstream_version: + cp['Epoch'], cp['Upstream-Version'] = upstream_version.split(':',1) + else: + cp['Upstream-Version'] = upstream_version else: cp['Debian-Version'] = cp['Version'] return cp |