mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-11 20:48:11 +01:00
add fix for Virtualbox download
This commit is contained in:
parent
a6a701b243
commit
4e8aa69ca5
1 changed files with 4 additions and 6 deletions
|
@ -1066,15 +1066,13 @@ if [ ! -e $PKGPATH/$SRCNAME ]; then
|
||||||
else
|
else
|
||||||
mkdir -p $SRCDIR/download
|
mkdir -p $SRCDIR/download
|
||||||
cd $SRCDIR/download
|
cd $SRCDIR/download
|
||||||
#DOWNLOADFILE=$(echo $DOWNLOAD | sed -e 's/^.*\///g;s/\%2B/+/g')
|
|
||||||
#if [ "$PKG" = "django" ]; then
|
|
||||||
# DOWNLOADFILE=$SRCNAME
|
|
||||||
#fi
|
|
||||||
#wget $WGETFLAGS $DOWNLOAD -O $DOWNLOADFILE >> $SBOPKGOUTPUT & echo "$!" >> $TMP/sbopkgpidlist 2>>$SBOPKGOUTPUT
|
|
||||||
wget $WGETFLAGS $DOWNLOAD >> $SBOPKGOUTPUT & echo "$!" >> $TMP/sbopkgpidlist 2>>$SBOPKGOUTPUT
|
wget $WGETFLAGS $DOWNLOAD >> $SBOPKGOUTPUT & echo "$!" >> $TMP/sbopkgpidlist 2>>$SBOPKGOUTPUT
|
||||||
wait
|
wait
|
||||||
DOWNLOADFILE=$(ls *)
|
DOWNLOADFILE=$(ls *)
|
||||||
mv $DOWNLOADFILE $SRCDIR/
|
CORRECTED_DOWNLOADFILE=$(echo $DOWNLOADFILE | sed -e \
|
||||||
|
's/\?e=.*$//') # for Virtualbox where wget adds a '?=' at end
|
||||||
|
mv $DOWNLOADFILE $CORRECTED_DOWNLOADFILE
|
||||||
|
mv $CORRECTED_DOWNLOADFILE $SRCDIR/
|
||||||
cd -
|
cd -
|
||||||
rm -rf $SRCDIR/download
|
rm -rf $SRCDIR/download
|
||||||
ln -s $SRCDIR/$SRCNAME $LOCALREPO/$SLACKVER/$PKGPATH/$SRCNAME
|
ln -s $SRCDIR/$SRCNAME $LOCALREPO/$SLACKVER/$PKGPATH/$SRCNAME
|
||||||
|
|
Loading…
Add table
Reference in a new issue