Skip to content

Doc string for checkurl() incomplete/incorrect #60

@mih

Description

@mih

I have no comprehensive view of the situation, hence only reporting here, rather than providing a patch...

checkurl() documentation says:

In order to provide additional information, a list of dictionaries can be returned.
The dictionaries can have 3 keys: {'url': str, 'size': int, 'filename': str}. All of them are optional.

It seems that the "all of them are optional" part is not correct. When I return dicts with just url and size, git-annex addurl will not attempt a download (but will also not fail).

Looking at the git-annex docs:

CHECKURL-MULTI Url1 Size1|UNKNOWN Filename1 Url2 Size2|UNKNOWN Filename2 ...

... Each triplet of url, size, and filename should be listed, one after the other

It only talks about triplets, but AnnexRemote will return only two values with CHECKURL-MULTI, when filename is omitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions