fix pkg name nevra parsing regex in dnf (#53572)

pull/53589/head
Adam Miller 6 years ago committed by Matt Clay
parent 9546761407
commit 7b98ff6a31

@ -0,0 +1,4 @@
---
bugfixes:
- 'dnf - fix package parsing to handle git snapshot nevra'
- 'dnf - enable package name specification for absent'

@ -383,7 +383,7 @@ class DnfModule(YumDnf):
]
rpm_arch_re = re.compile(r'(.*)\.(.*)')
rpm_nevr_re = re.compile(r'(\S+)-(?:(\d*):)?(.*)-(~?\w+[\w.]*)')
rpm_nevr_re = re.compile(r'(\S+)-(?:(\d*):)?(.*)-(~?\w+[\w.+]*)')
try:
arch = None
rpm_arch_match = rpm_arch_re.match(packagename)

Loading…
Cancel
Save