#2125 mirrormanager: update EPEL regexes for EPEL 10
Merged 9 months ago by zlopez. Opened 9 months ago by carlwgeorge.
fedora-infra/ carlwgeorge/ansible mirrormanager-epel10-scan  into  main

@@ -21,11 +21,11 @@ 

  url="/srv/pub/epel/"

  

  [[repository_mapping]]

- regex="pub/epel/testing/[\\d]/[^M].*"

+ regex="^pub/epel/testing/\\d+(?:\\.\\d+)?/Everything/"

I'm not sure if the ^ will work, as the url doesn't start with pub

Most of other regexes in this file start with ^, so I was trying to lean towards consistency while updating these regexes. I can certainly drop that character if it does cause problems, but it seems to be working fine with the other mappings.

  prefix="testing-epel"

  

  [[repository_mapping]]

- regex="pub/epel/[\\d]/[^M].*"

+ regex="^pub/epel/\\d+(?:\\.\\d+)?/Everything/"

  prefix="epel"

  

  [[repository_mapping]]

Previously these regexes only matched a single digit for EPEL paths. This changes them to match multiple digits, and also to optionally match a minor version.

I'm not sure if the ^ will work, as the url doesn't start with pub

Most of other regexes in this file start with ^, so I was trying to lean towards consistency while updating these regexes. I can certainly drop that character if it does cause problems, but it seems to be working fine with the other mappings.

rebased onto e41d292

9 months ago

I didn't look at the whole file. Now I can see that this is really used in most places. So I'm OK with that.

rebased onto 71f0757

9 months ago

rebased onto 71f0757

9 months ago

Pull-Request has been merged by zlopez

9 months ago

Merged and deployed with ansible-playbook /srv/web/infra/ansible/playbooks/openshift-apps/mirrormanager.yml