diff options
-rw-r--r-- | gbp/deb_utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gbp/deb_utils.py b/gbp/deb_utils.py index 4d764156..eb3b0819 100644 --- a/gbp/deb_utils.py +++ b/gbp/deb_utils.py @@ -128,6 +128,14 @@ def is_native(cp): return [ True, False ]['-' in cp['Version']] +def has_epoch(cp): + """does the topmost version number contain an epoch""" + try: + if cp['Epoch']: + return True + except KeyError: + return False + def has_orig(cp, dir): "Check if orig.tar.gz exists in dir" try: |