[PATCH 2/2] debian-wheezy: Fix volume-id expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The volume-id expression should be able to match things like: 7.0.0,
7.1.0, 7.10.0.

[ffidenci@cat libosinfo]$ python
Python 2.7.11 (default, Feb  5 2016, 01:53:41)
[GCC 6.0.0 20160201 (Red Hat 6.0.0-0.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.match(r'7.\d\d?.\d', '7.0.0')
<_sre.SRE_Match object at 0x7f92e9fa25e0>
>>> re.match(r'7.\d\d?.\d', '7.1.0')
<_sre.SRE_Match object at 0x7f92e9fa2578>
>>> re.match(r'7.\d\d?.\d', '7.10.0')
<_sre.SRE_Match object at 0x7f92e9fa2578>

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 data/os/debian.org/debian-7.xml.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/os/debian.org/debian-7.xml.in b/data/os/debian.org/debian-7.xml.in
index 0c89bc7..2f71b09 100644
--- a/data/os/debian.org/debian-7.xml.in
+++ b/data/os/debian.org/debian-7.xml.in
@@ -39,7 +39,7 @@
     <media arch="x86_64">
       <url>http://cdimage.debian.org/mirror/cdimage/archive/7.9.0/amd64/iso-dvd/debian-7.9.0-amd64-DVD-1.iso</url>
       <iso>
-        <volume-id>Debian 7.\d.\d amd64 1</volume-id>
+        <volume-id>Debian 7.\d\d?.\d amd64 1</volume-id>
       </iso>
       <kernel>install.amd/vmlinuz</kernel>
       <initrd>install.amd/initrd.gz</initrd>
-- 
2.7.4

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux