diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-24 10:29:26 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-24 10:46:44 +0100 |
commit | 8ad939daa6614c68bef9625939f05f539d26e029 (patch) | |
tree | 6b54146c654ed95154c72e8a3cfa6a24bdbc3f3e /bin | |
parent | f1ad65af1c6e4b72f014549b8e8f47e589bcaa16 (diff) | |
download | jenkins.debian.net-8ad939daa6614c68bef9625939f05f539d26e029.tar.xz |
reproducible: fix strip_epoch() where I silly assume epochs can only have one or two digits
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_common.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index d032636a..8df5e267 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -351,14 +351,9 @@ def strip_epoch(version): """ Stip the epoch out of the version string. Some file (e.g. buildlogs, debs) do not have epoch in their filenames. - This recognize a epoch if there is a colon in the second or third character - of the version. """ try: - if version[1] == ':' or version[2] == ':': - return version.split(':', 1)[1] - else: - return version + return version.split(':', 1)[1] except IndexError: return version |