Package: apt-file Severity: important Tags: patch The diffindex-download script does not gracefully handle the addition of the new fields used by APT. This causes apt-file to disable the PDiff support and revert to downloading the full Contents file.
This can be fixed by applying the following patch to diffindex-download. > diff --git a/diffindex-download b/diffindex-download > index 588ca14..eb0339c 100755 > --- a/diffindex-download > +++ b/diffindex-download > @@ -288,6 +288,12 @@ sub parse_index { > } > $previous = undef; > } > + elsif ( $line =~ m{^[^ :]+:}) { > + $section = 'ignore'; > + } > + elsif ($section eq 'ignore') { > + next; > + } > elsif ( $line =~ m{^\s+($re_sum)\s+(\d+)\s+(\S+)\s*$} ) { > my ( $sum, $size, $name ) = ( lc($1), $2, $3 ); > if ( !defined $section ) {
signature.asc
Description: OpenPGP digital signature