[Bug 311186] Re: [apt-ftparchive] Getting "Size mismatch" when rebuilding a package with same version

H.-Dirk Schmitt dirk at computer42.org
Wed Jun 8 17:27:34 UTC 2011


see man apt-ftparchive

APT::FTPArchive::AlwaysStat

           apt-ftparchive(1) caches as much as possible of metadata in a cachedb. If packages are recompiled and/or republished
           with the same version again, this will lead to problems as the now outdated cached metadata like size and checksums
           will be used. With this option enabled this will no longer happen as it will be checked if the file was changed. Note
           that this option is set to "false" by default as it is not recommend to upload multiply versions/builds of a package
           with the same versionnumber, so in theory nobody will have these problems and therefore all these extra checks are
           useless.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/311186

Title:
  [apt-ftparchive] Getting "Size mismatch" when rebuilding a package
  with same version

Status in “apt” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: apt

  There is a bug in apt-ftparchive that makes it not update the filesize
  and hash sums.

  To reproduce it:
  Build a package and let apt-ftparchive archive that package in a Packages file.
  Then make some changes to the package and let it build again. Then apt-ftparchive does
  not update the filesize and hash sums in the Packages file.
  If you then have a package that has a build dependency on that package you get something like that
  from apt when it tries to install the package:
  Failed to fetch http://localhost/post_build/intrepid/libtuxcap1_1.3.3-1~getdeb1_i386.deb Size mismatch




More information about the foundations-bugs mailing list