autopkg / keeleysam-recipes

Recipes for autopkg!
Apache License 2.0
21 stars 49 forks source link

CHECK_FILESIZE_ONLY needs to be used because f.lux downloads from multiple mirrors #132

Open mtconleyuk opened 3 years ago

mtconleyuk commented 3 years ago

According to the tech support guy at justgetflux.com, 'We usually trickle out updates, and currently 20% of the requests will get the latest version. This will adjust upwards over the next few weeks.' So I wind up with two different versions of f.lux in my repo, one of them the earlier one.

I think adding the CHECK_FILESIZE_ONLY flag to the URLDownloader in Flux.download.recipe prevents this problem.

octomike commented 3 years ago

Ah, that's why.... I also send a message to the f.lux team complaining about this. The sparklefeed URL is returning 40.1 and 41.5 right now - randomly.

I don't think CHECK_FILESIZE_ONLY will do anything. I believe, when autopkg detects that a cached download differs (either from etag/date or filesize), it will download the "new" package and realize some time later that the downloaded version is older than the current version. The pipeline then stops and won't import anything. Still, it produces a lot of unnecessary noise..