This patch seems to fix the behaviour, at least as far as a local Packages/Packages.gz file goes. I have no idea if it impacts other behaviours (none that I could tell).
From what I could tell, the bug only appears on a local *compressed* Packages, and only when IMSHit=true (and it doesn't have to decompress it). A little bit of sleuthing led me here.
This patch seems to fix the behaviour, at least as far as a local Packages/ Packages. gz file goes. I have no idea if it impacts other behaviours (none that I could tell).
From what I could tell, the bug only appears on a local *compressed* Packages, and only when IMSHit=true (and it doesn't have to decompress it). A little bit of sleuthing led me here.
Happy hacking!