From 8f472416bf7ea2e724a24d79b44ca2b83beb5ef5 Mon Sep 17 00:00:00 2001 From: Mr. Tao Date: Sep 06 2021 12:38:09 +0000 Subject: Allow for minor release bump Handle bumping of release strings in the form Release: 1.0.1%{dist} correctly. --- diff --git a/rpmdev-bumpspec b/rpmdev-bumpspec index 6727ce8..848e281 100755 --- a/rpmdev-bumpspec +++ b/rpmdev-bumpspec @@ -243,7 +243,7 @@ class SpecFile(object): if string is None: string = "" relre = re.compile(r'(?P.+\.)' + re.escape(string) + - r'(?P\d+$)') + r'(?P.+$)') relmatch = relre.search(release) if relmatch: prefix = relmatch.group('prefix')