[Libosinfo] [osinfo-db][PATCH] opensuse-unknown: Adjust the volume-id regex
Fabiano Fidêncio
fabiano at fidencio.org
Sat May 26 20:29:43 UTC 2018
The regex to match unknown openSUSE prereleases is becoming
bigger and harder to read.
Basically, what it's doing is:
(15\.[1-9]|(1[6-9]|[23]|[5-9])[0-9]\.[0-9]|4[3-9]\.[0-9])
--------- ----- ---------------- ---- -------------
| | | | |
v v v | v
15.1+ 16 20, 30, 50 - 90 v 43.0+
.0, .1, ..., .9
I'm desconsidering both the 13.x series or older and 42.x series as
those are not going to have new releases anymore.
Also, (DVD|NET|Kubic) was introduced as this is the naming chosen for
DVD or NET installation or whether it's a Kubic DVD installation.
Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.org>
---
data/os/opensuse.org/opensuse-unknown.xml.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/os/opensuse.org/opensuse-unknown.xml.in b/data/os/opensuse.org/opensuse-unknown.xml.in
index 06ae67a..6a8a3b2 100644
--- a/data/os/opensuse.org/opensuse-unknown.xml.in
+++ b/data/os/opensuse.org/opensuse-unknown.xml.in
@@ -14,7 +14,7 @@
<media arch="x86_64">
<iso>
- <volume-id>openSUSE-Leap-([1-9][4-9]\.[0-9]+|13\.[3-9])-DVD-x86_64</volume-id>
+ <volume-id>openSUSE-Leap-(15\.[1-9]|(1[6-9]|[23]|[5-9])[0-9]\.[0-9]|4[3-9]\.[0-9])-(DVD|NET|Kubic)-x86_64*</volume-id>
<system-id>LINUX</system-id>
<publisher-id>SUSE LINUX GmbH</publisher-id>
</iso>
--
2.14.3
More information about the Libosinfo
mailing list