From 8ad939daa6614c68bef9625939f05f539d26e029 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 24 Mar 2015 10:29:26 +0100 Subject: reproducible: fix strip_epoch() where I silly assume epochs can only have one or two digits --- bin/reproducible_common.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2