From e2f7920aa2bbd94ee9b7d7a17c0e07f3c8920aaa Mon Sep 17 00:00:00 2001 From: Sohan Kunkerkar Date: Tue, 8 Jun 2021 16:30:18 -0400 Subject: [PATCH] Fix go-mods-to-bundled-provides script to parse correct rpm version --- go-mods-to-bundled-provides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go-mods-to-bundled-provides.py b/go-mods-to-bundled-provides.py index 3de621a..51dee83 100755 --- a/go-mods-to-bundled-provides.py +++ b/go-mods-to-bundled-provides.py @@ -51,7 +51,7 @@ def go_mod_tag_to_rpm_provides_version(tag): tag = tag[1:] # is this a pseudo-version? e.g. v0.0.0-20181031085051-9002847aa142 - m = re.match("(.*)-([0-9]{14})-([a-f0-9]{12})", tag) + m = re.match("(.*)-([0-9.]+)-([a-f0-9]{12})", tag) if m: # rpm doesn't like multiple dashes in the version, so just merge the # timestamp and the commit checksum into the "release" field