summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py7
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