mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
Add PKG_SOURCE_NAME for non-standard package tarballs
This commit is contained in:
@@ -25,21 +25,18 @@ if [ -z "$3" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
[ -z "$PKG_URL" ] && exit 1
|
||||
[ -z "$PKG_URL" -o -z "$PKG_SOURCE_NAME" ] && exit 1
|
||||
[ ! -d "$SOURCES/$1" -o ! -d "$3" ] && exit 1
|
||||
|
||||
for i in $PKG_URL; do
|
||||
FILE="`basename $i`"
|
||||
|
||||
case $FILE in
|
||||
case $PKG_SOURCE_NAME in
|
||||
$2)
|
||||
f="$SOURCES/$1/$FILE"
|
||||
f="$SOURCES/$1/$PKG_SOURCE_NAME"
|
||||
if [ ! -f $f ]; then
|
||||
echo "error: File $FILE doesn't exists in package $1 sources directory"
|
||||
echo "error: File $PKG_SOURCE_NAME doesn't exists in package $1 sources directory"
|
||||
echo "have you called scripts/extract before scripts/get ?"
|
||||
exit 1
|
||||
fi
|
||||
case $FILE in
|
||||
case $PKG_SOURCE_NAME in
|
||||
*.tar)
|
||||
tar xf $f -C $3
|
||||
;;
|
||||
@@ -73,5 +70,4 @@ for i in $PKG_URL; do
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
done
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user