Re: Problem with snp.py
I have fixed this problem changing 631 line in spn.py script. The
problem was that
the file addressed in line 800:
cmd = "ar p %s data.tar.gz | tar tvfz -" % deb_file
didn't have the correct structure in some packages, so the pattern
matching got that error message.
The line 631 changed is:
"([^ ]+) +([^\/]*)\/([^ ]+) +([^ ]+) ([^ ]+) ([^ ]+) +(.*)")
On Thu, 3 Mar 2005 18:28:57 +0100, Diego Municio <dmunicio@gmail.com> wrote:
> I have been working with the Snarf 'n Pick generator and I get the
> following message for i-386 arch:
>
> SCANNING http://ftp.uk.debian.org/debian/dists/testing/main/binary-i386/Packages
> Traceback (most recent call last):
> File "./snp.py", line 1897, in ?
> p.load_sources()
> File "./snp.py", line 1090, in load_sources
> d = Source(fields[1], fields[2], fields[3:], self.arch)
> File "./snp.py", line 864, in __init__
> self.add_packages(base, distribution, component, architecture)
> File "./snp.py", line 911, in add_packages
> p.get_file_list() # Get file list from package
> File "./snp.py", line 800, in get_file_list
> file = File(fileinfo)
> File "./snp.py", line 634, in __init__
> ( self.mode,
> AttributeError: 'NoneType' object has no attribute 'groups'
>
> ¿what should I do?
> Thanks
>
Reply to: