diff --git a/packages/utils.py b/packages/utils.py index a6d865e9..7f72baf6 100644 --- a/packages/utils.py +++ b/packages/utils.py @@ -174,7 +174,7 @@ def parse_errata_children(e, children): e.releases.add(osgroup) elif c.tag == 'packages': pkg_str = c.text.replace('.rpm', '') - pkg_re = re.compile('(\S+)-(?:(\d*):)?(.*)-(~?\w+)[.+](~?\S+)\.(\S+)$') + pkg_re = re.compile('(\S+)-(?:(\d*):)?(.*)-(~?\w+)[.+](~?\S+)\.(\S+)$') # noqa name, epoch, ver, rel, dist, arch = pkg_re.match(pkg_str).groups() if dist: rel = '{0!s}-{1!s}'.format(rel, dist)