[pacman-dev] [RFC] Replacing wget with curl in makepkg

Dave Reisner d at falconindy.com
Wed Mar 23 11:36:24 EDT 2011


The attached patch proposes to replace wget with curl as the default
DLAGENT in makepkg for http, https, and ftp. This seems like the
sane choice given our switch from fetch to curl.

dave
-------------- next part --------------
>From 4e0ad1833fa5c8ef725ce3144e6318c397f60782 Mon Sep 17 00:00:00 2001
From: Dave Reisner <d at falconindy.com>
Date: Wed, 16 Mar 2011 22:56:14 -0400
Subject: [PATCH] etc/makepkg.conf: use curl in place of wget as a DLAGENT

Signed-off-by: Dave Reisner <d at falconindy.com>
---
 etc/makepkg.conf.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index 286e2a8..c3b7cc0 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -8,9 +8,9 @@
 #
 #-- The download utilities that makepkg should use to acquire sources
 #  Format: 'protocol::agent'
-DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
-          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
-          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
+DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
+          'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
+          'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
           'rsync::/usr/bin/rsync -z %u %o'
           'scp::/usr/bin/scp -C %u %o')
 
-- 
1.7.4.1



More information about the pacman-dev mailing list