python-apt should be more permissive on url checking. in fact, it currently 
marks as invalid every url with NUMBERS in it.
for example
http://mirror.3fl.net.au/ubuntu/
http://mirror2.etf.bg.ac.yu/distributions/ubuntu/ubuntu-archive/
are not available in the server list.

moreover, every server listening on a custom port is marked as invalid.
This could lead to some trouble when working with apt-cacher.

proposed patch:

132c132
<         match_mirror_line = 
re.compile(r"^(#LOC:.+)|(((http)|(ftp)|(rsync)|(file)|(https))://[A-Za-z0-9@/\.:\-_]+)$")
---
>         match_mirror_line = 
> re.compile(r"^(#LOC:.+)|(((http)|(ftp)|(rsync)|(file)|(https))://[A-Za-z/\.:\-_]+)$")

-- 
python-apt should accept '@' in mirror adresses
https://bugs.launchpad.net/bugs/223097
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to