apt-ftparchive includes incorrect file sizes in Packages file

Bug #82505 reported by Dave Lillis
2
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: apt-utils

Running on Edgy. apt-ftparchive -v gives "apt 0.6.45ubuntu14 for linux i386 compiled on Sep 27 2006 23:43:42"

I'm running the following command: "apt-ftparchive generate apt-ftparchive.conf". The "Packages" file that's generated by this contains incorrect file sizes for the .debs it finds. This results in a "size mismatch" error whenever I try to install anything from my repository. The dpkg-scanpackages (1.13.22) command gives the correct file sizes.

My apt-ftparchive.conf file is as follows:
-----------------------------------------------------------------------
Dir {
  ArchiveDir ".";
  CacheDir ".";
};

Default {
  Packages::Compress ". gzip bzip2";
  Sources::Compress "gzip bzip2";
  Contents::Compress "gzip bzip2";
};

BinDirectory "dists/current/main/binary-i386" {
  Packages "dists/current/main/binary-i386/Packages";
  Contents "dists/current/Contents-i386";
  SrcPackages "dists/current/main/source/Sources";
};

Tree "dists/current" {
  Sections "main";
  Architectures "i386";
};

Default {
  Packages {
    Extensions ".deb";
  };
};
-----------------------------------------------------------------------

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I tried to reproduce this on both edgy and feisty without success. What package have incorrect size? All? Some? If some, can you make a deb of one of the packages available somewhere so that I can test it? Is the calculated md5sum correct? Or is that wrong too?

Thanks,
 Michael

Changed in apt:
status: Unconfirmed → Needs Info
Revision history for this message
Dave Lillis (ishnid) wrote :

Thanks for your reply.

All the six packages in the repository will be given an incorrect Size attribute in the "Packages" file. Here's the list (correct value first, as calculated using dpkg-scanpackages and verified using ls -l)

agentfactory 134176 134680
agentfactory-afapl2 253730 254302
agentfactory-fipa 9996 9964
agentfactory-mts-http 15192 15144
agentfactory-mts-local 3700 3698
agentfactory-mts-udp 5978 5974

The packages themselves are at http://www.agentfactory.com/debian/dists/current/main/binary-i386/

The dpkg-scanpackage command I'm using that creates the correct Packages file is:
"dpkg-scanpackages dists/current/main/binary-i386 /dev/null > dists/current/main/binary-i386/Packages"

The MD5sum is different in the two Packages files also, yes.

Revision history for this message
Dave Lillis (ishnid) wrote :

. . . and here's the incorrect Packages file

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apt (Ubuntu) because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.