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

Bug#600852: Fail to read empty but gzipped Packages files



Quoting Otavio Salvador (otavio@ossystems.com.br):
> Package: apt
> Version: 0.8.7
> Severity: critical
> Tags: d-i
> 
> During the build of Debian Installer we have the possibility to use
> localudebs so a build/localudebs directory scanned and a Packages file
> is generated for it.
> 
> In the case of an empty Packages file (gzipped) is used, APT fails to
> read it and in this case breaking the whole building process of
> installer.
> 
> Downgrading apt to 0.8.5 I was able to build d-i file so a change done
> later then 0.8.5 has broken it.

From the changelog, there are chances that this:

  [ Martin Pitt ]
  * apt-pkg/deb/debindexfile.cc:
    - Use FileFd::Size() instead of stat()ing the sources/binary/translations
      indexes directly, so that we have transparent handling of gzipped
      indexes.
  * apt-pkg/contrib/fileutl.cc:
    - Fix FileFd::Size() for gzipped files to give the size of the
      uncompressed data. This fixes cache building progress going way
      over 100%.

...is involved in the regression.

I may be wrong, of course, as this is kinda wild guess...

Attachment: signature.asc
Description: Digital signature


Reply to: