> Attached is a patch that should do just that. But maybe it breaks fetching an 
> unpacked Packages file, if that should be allowed.

And in fact it totally does, only one update completes successfully, after that 
all clients get the error 404 trying to fetch "Packages" (not gz, not bz2, this 
exact filename), and according to approx cache dir contents, it only has 
Packages.gz.

------------------------------------------------------
Hit http://natsu.romanrm.ru wheezy InRelease
Ign http://natsu.romanrm.ru wheezy/main amd64 Packages/DiffIndex
Ign http://natsu.romanrm.ru wheezy/main TranslationIndex
Err http://natsu.romanrm.ru wheezy/main amd64 Packages
  404  Not Found
Ign http://natsu.romanrm.ru wheezy/main Translation-en_US
Ign http://natsu.romanrm.ru wheezy/main Translation-en
W: Failed to fetch 
http://natsu.romanrm.ru:9998/debian/dists/wheezy/main/binary-amd64/Packages  
404  Not Found

E: Some index files failed to download. They have been ignored, or old ones 
used instead.
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
------------------------------------------------------

In this state the clients can not update from approx anymore at all, until the 
cache dir is manually cleared out (after which "Packages" can be successfully 
fetched from the remote repository). So I delete 
/var/cache/approx/debian/dists/wheezy/main/binary-amd64/Packages.gz, and update 
succeeds (once).

Did you even test this patch at all?

-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature

Reply via email to