mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-18 09:18:38 +00:00
Allow ^ in Version (NVR)
This commit is contained in:
parent
31edffb4c5
commit
04b09569b1
@ -9,10 +9,10 @@ import aiohttp
|
|||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
NVRA_RE = re.compile(
|
NVRA_RE = re.compile(
|
||||||
r"^(\S+)-([\w~%.+]+)-(\w+(?:\.[\w~%+]+)+?)(?:\.(\w+))?(?:\.rpm)?$"
|
r"^(\S+)-([\w~%.+^]+)-(\w+(?:\.[\w~%+]+)+?)(?:\.(\w+))?(?:\.rpm)?$"
|
||||||
)
|
)
|
||||||
NEVRA_RE = re.compile(
|
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+):")
|
EPOCH_RE = re.compile(r"(\d+):")
|
||||||
DIST_RE = re.compile(r"(\.el\d(?:_\d|))")
|
DIST_RE = re.compile(r"(\.el\d(?:_\d|))")
|
||||||
|
Loading…
Reference in New Issue
Block a user