mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-12 16:21:28 +00:00
Allow ^ in Version (NVR) (#10)
This commit is contained in:
parent
31edffb4c5
commit
64e03009c1
@ -9,10 +9,10 @@ import aiohttp
|
||||
import yaml
|
||||
|
||||
NVRA_RE = re.compile(
|
||||
r"^(\S+)-([\w~%.+]+)-(\w+(?:\.[\w~%+]+)+?)(?:\.(\w+))?(?:\.rpm)?$"
|
||||
r"^(\S+)-([\w~%.+^]+)-(\w+(?:\.[\w~%+]+)+?)(?:\.(\w+))?(?:\.rpm)?$"
|
||||
)
|
||||
NEVRA_RE = re.compile(
|
||||
r"^(\S+)-(?:(\d)+:)([\w~%.+]+)-(\w+(?:\.[\w~%+]+)+?)(?:\.(\w+))?(?:\.rpm)?$"
|
||||
r"^(\S+)-(?:(\d)+:)([\w~%.+^]+)-(\w+(?:\.[\w~%+]+)+?)(?:\.(\w+))?(?:\.rpm)?$"
|
||||
)
|
||||
EPOCH_RE = re.compile(r"(\d+):")
|
||||
DIST_RE = re.compile(r"(\.el\d(?:_\d|))")
|
||||
|
Loading…
Reference in New Issue
Block a user