Skip to content

xbps-fetch: tilde character shouldn't be url-escaped #606

@gmbeard

Description

@gmbeard

When using xbps-fetch, the tilde (~) character is being url encoded into %7e. This is causing at least one xbps srcpkg to fail when downloading its distfiles .

For example, the following fails to find the udptunnel distfile (note the tilde character in the path)...

$ xbps-fetch -v 'http://www.cs.columbia.edu/~lennox/udptunnel/udptunnel-1.1.tar.gz'

Examining the TTY output, I can see that the tilde is being url encoded...

requesting http://www.cs.columbia.edu/%7elennox/udptunnel/udptunnel-1.1.tar.gz

Using curl to download this file works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions