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

Bug#487673: Case for MatchURI fields is incorrect for /usr/share/python-apt/templates/Debian.info



Hey,

I was debugging this problem and just found out that the problem is
python-apt tries to find a field named MatchURI on the 'channel' files,
but Debian.info has MatchUri instead:

        (Pdb) l
        195                 elif field == 'MatchURI' and not template.match_uri:
        196                     template.match_uri = value
        197                 elif field == 'MatchURI-%s' % self.arch:
        198                     template.match_uri = value
        199                 elif (field == 'MirrorsFile' or
        200  ->                   field == 'MirrorsFile-%s' % self.arch):
        201                     if not map_mirror_sets.has_key(value):
        202                         mirror_set = {}
        203                         try:
        204                             mirror_data = filter(match_mirror_line.match,
        205                                                  map(string.strip, open(value)))
        (Pdb) print value
        ftp[0-9]*\.[a-z]\.debian\.org
        (Pdb) n
        
Here:

        $ grep -i matchuri /usr/share/python-apt/templates/Debian.info
        MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
        MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
        MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
        MatchUri: ftp[0-9]*\.[a-z]\.debian\.org
        MatchUri: ftp[0-9]*\.[a-z]\.debian\.org

Thanks!

-- 
Gustavo Noronha Silva <kov@debian.org>
Debian Project

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: