diff --git a/apollo/rpmworker/repomd.py b/apollo/rpmworker/repomd.py index defc26f..0aa8812 100644 --- a/apollo/rpmworker/repomd.py +++ b/apollo/rpmworker/repomd.py @@ -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|))")