mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +03:00
add -O option to wget call to fix certain cases where the downloaded file had cruft after the end of the filename; added new DOWNLOADFILE variable in order to use this switch; thanks to acidchild for the bug report
This commit is contained in:
parent
1cb7a655d1
commit
6f967d3b14
@ -29,9 +29,9 @@
|
||||
# Other contributors: Bob Lounsbury, Robby Workman, Alan Hicks, Paul
|
||||
# Wisehart, slakmagik, Eric Hameleers, Michiel van Wessem, hba, Erik
|
||||
# Hanson, Antoine, ktabic, Ken Roberts, samac, Bert Babington, Murat
|
||||
# D. Kadirov, The-spiki, David Somero, LukenShiro, Drew Ames, and
|
||||
# nille. This script would not be where it is without the help of
|
||||
# these folks. Thank you!
|
||||
# D. Kadirov, The-spiki, David Somero, LukenShiro, Drew Ames, nille,
|
||||
# and acidchild. This script would not be where it is without the
|
||||
# help of these folks. Thank you!
|
||||
|
||||
# Variables
|
||||
SCRIPT=${0##*/}
|
||||
@ -834,7 +834,8 @@ if [ ! -e $PKGPATH/$SRCNAME ]; then
|
||||
ln -s $SRCDIR/$SRCNAME $LOCALREPO/$SLACKVER/$PKGPATH/$SRCNAME
|
||||
else
|
||||
cd $SRCDIR
|
||||
wget -c -t 5 -T 10 --progress=bar $DOWNLOAD || rm -rf $TMP/sbopkg_build.lck
|
||||
DOWNLOADFILE=$(echo $DOWNLOAD | sed -e 's/^.*\///g')
|
||||
wget -c -t 5 -T 10 --progress=bar $DOWNLOAD -O $DOWNLOADFILE || rm -rf $TMP/sbopkg_build.lck
|
||||
cd -
|
||||
ln -s $SRCDIR/$SRCNAME $LOCALREPO/$SLACKVER/$PKGPATH/$SRCNAME
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user