Re: 0repo failing on redirect to Amazon S3

Thomas Leonard <[email protected]> Thu, 10 Sep 2015 12:21:56 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy-sZYB4NDQK9kJ8oXbVSSz+ofYr8WkaUTMkBsB0iO1ucA@mail.gmail.com>
On 9 September 2015 at 23:03, Bastian Eicher <[email protected]> wrote:
>> Most likely, it's doing a HEAD but only GET is authorised.
> That sounds like the most likely explanation, yes.
>
>> You can disable the check by using this in your 0repo-config.py:
>>
>> def check_uploaded_archive(archive, url):
>>     pass
> Unfortunately that seems to do nothing. The normal archive check is still
> performed and the contents of check_uploaded_archive() is not executed
> regardless of what I put there.
>
> I have attached my 0repo-config.py for reference.

Ah, I see. That check is for archives uploaded *by* 0repo. Looks like
there's a separate check for existing URLs passed to 0repo: look for
calls to urltest.get_size in 0repo's archives.py.


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140