[pacman-dev] [PATCH] makepkg.conf: add default protocol handler for file:// urls.

Allan McRae allan at archlinux.org
Sat May 12 11:17:27 UTC 2018


On 03/05/18 11:32, Eli Schwartz wrote:
> This is a common URI scheme (in general if not in makepg) and we should
> provide a handler for it. We already allow its use for locally sourced
> git repositories, so it makes sense to not leave files out.
> 
> Signed-off-by: Eli Schwartz <eschwartz at archlinux.org> ---
>  etc/makepkg.conf.in | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
> index fe3858ad..4d6ab78d 100644
> --- a/etc/makepkg.conf.in
> +++ b/etc/makepkg.conf.in
> @@ -8,7 +8,8 @@
>  #
>  #-- The download utilities that makepkg should use to acquire sources
>  #  Format: 'protocol::agent'
> -DLAGENTS=('ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
> +DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'

why not use "cp"?

> +          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
>            'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
>            'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
>            'rsync::/usr/bin/rsync --no-motd -z %u %o'
> 


More information about the pacman-dev mailing list