Bug#663417: apt-file: sends double request (one HEAD, one GET)

2012-06-02 Thread Raphael Geissert
reopen 663417 tags 663417 - patch thnanks On Saturday 02 June 2012 11:12:10 Thijs Kinkhorst wrote: On Tue, March 13, 2012 21:22, Stefan Fritsch wrote: On Sunday 11 March 2012, you wrote: diffindex-download calls url_not_found when looking for the index file and when downloading the

Bug#663417: apt-file: sends double request (one HEAD, one GET)

2012-03-13 Thread Stefan Fritsch
On Sunday 11 March 2012, you wrote: diffindex-download calls url_not_found when looking for the index file and when downloading the Contents file, resulting in double requests. You could just pass --fail to curl and look for the exit code 22. The attached patch does that. It is a bit ugly,

Bug#663417: apt-file: sends double request (one HEAD, one GET)

2012-03-10 Thread Raphael Geissert
Package: apt-file Version: 2.4.2 Tags: patch diffindex-download calls url_not_found when looking for the index file and when downloading the Contents file, resulting in double requests. You could just pass --fail to curl and look for the exit code 22. The attached patch does that. It is a bit