Hi.
My first post here.
Since wget2 has been added to -current. I decided to try modifying slackpkg to use wget2.
If anyone wants to give it a shot, it's pretty simple:
/usr/libexec/slackpkg/core-functions.sh
around the line 62
Code:
function system_setup() {
# Create $WORKDIR just in case
mkdir -p "${WORKDIR}"
# Select the command to fetch files and packages from network sources
if [ "$DOWNLOADER" = "curl" ]; then
DOWNLOADER="curl ${CURLFLAGS} -o"
else
DOWNLOADER="wget ${WGETFLAGS} -O"
fi
just change
wget to
wget2.
Code:
function system_setup() {
# Create $WORKDIR just in case
mkdir -p "${WORKDIR}"
# Select the command to fetch files and packages from network sources
if [ "$DOWNLOADER" = "curl" ]; then
DOWNLOADER="curl ${CURLFLAGS} -o"
else
DOWNLOADER="wget2 ${WGETFLAGS} -O"
fi
You'll also need to edit slackpkg.conf (/etc/slackpkg/) because --passive-ftp isn't a supported argument in wget2 and it will error out.
Code:
WGETFLAGS="--passive-ftp"
Either set it to blank (
WGETFLAGS="") or if (for example) you like progress bars from the original wget, set it to
WGETFLAGS="--progress=bar".
What do you think? Something to consider for new versions of slackpkg?