Bug#351056: FIX for #351056, apt always reinstalling packages because identical versions are not merged in the cache
On Fri, Aug 03, 2007 at 09:14:11PM +0200, Magnus Holmgren wrote:
> tags 351056 + patch
> thanks
>
> This patch should fix the bug. Previously, pkgCacheGenerator::MergeList()
> would stop when it found a Version less than or equal to the one being added,
> but if the hashes didn't match at first, it would always add a new Version,
> even if there was a Version with a matching Hash. My patch loops until a
> matching Version and Hash is found *or* the new version is greater than the
> remaining old ones, which makes the second loop unnecessary.
FYI, I am seeing this problem as well, but this patch, while it
applies cleanly, does not resolve it for me. I've tried after apt-get
clean and after removing the /var/cache/apt/*.bin files, and I've
tried applying only the first patch hunk, with no success.
--
Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux
Reply to: