Package: cupt Version: 0.2.3 Severity: normal Tags: patch Hi,
# cupt update fails if anywhere in your sources.list you have used tabs instead of spaces to separate your various fields (deb, uri, distribution, sections). The attached patch solves this by changing the arguments to the split function from "one or more spaces" to "any whitespace". Best regards, OdyX -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (750, 'unstable'), (700, 'testing-proposed-updates'), (700, 'testing'), (90, 'experimental'), (50, 'testing-proposed-updates'), (50, 'experimental'), (50, 'unstable'), (50, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages cupt depends on: ii libcupt-perl 0.2.3 alternative front-end for dpkg -- ii perl 5.10.0-23 Larry Wall's Practical Extraction cupt recommends no packages. cupt suggests no packages. -- no debconf information
diff --git a/Cupt/Cache.pm b/Cupt/Cache.pm index 7edc1ed..4fa2696 100644 --- a/Cupt/Cache.pm +++ b/Cupt/Cache.pm @@ -668,7 +668,7 @@ sub __parse_source_list { next if m/^\s*(?:#.*)?$/; my %entry; - ($entry{'type'}, $entry{'uri'}, $entry{'distribution'}, my @sections) = split / +/; + ($entry{'type'}, $entry{'uri'}, $entry{'distribution'}, my @sections) = split ' '; mydie("incorrect source type at file '%s', line %u", $file, $.) if ($entry{'type'} ne 'deb' && $entry{'type'} ne 'deb-src');
signature.asc
Description: This is a digitally signed message part.