[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886016: debootstrap: add support for Acquire-By-Hash for downloading indices



tag 886016 + pending
thanks

Hi,

On 2/21/18 2:10 PM, Julien Cristau wrote:
> On 02/15/2018 11:31 AM, Philipp Kern wrote:
>> On 2018-01-01 17:01, Julien Cristau wrote:
>>> following patch looks at the Acquire-By-Hash field in (In)Release to get
>>> Packages from the by-hash directory if available and avoid races.  I
>>> thought we already had a bug about this, but can't find one now.
>>
>> So as discussed on IRC this patch sadly does not work as-is. It fetches
>> the Packages file from the by-hash location but then proceeds to fetch
>> the packages themselves from a by-hash location as well and fails when
>> those fetches all 404 (because pool doesn't have a by-hash subdirectory
>> and that would also not work well on a traditional filesystem if not
>> sharded by, say, hash prefix).
>>
>> Instead it would need to restrict itself to only attempt metadata
>> fetches by-hash by passing some sort of flag around.
>>
> I have an updated patch at home that seems to work, will try and
> remember to push/send it tonight.

I rebased and re-tested Julien's patch set and pushed the commits to master.

Kind regards and thanks
Philipp Kern

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: