mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-06 01:16:34 +00:00
updated
This commit is contained in:
16
scratch
16
scratch
@@ -370,6 +370,8 @@ installpkg() {
|
||||
elif [[ "$1" =~ ^-(r|-reinstall)$ ]]; then
|
||||
OPTS+=($1)
|
||||
REINSTALL=1
|
||||
elif [[ "$1" =~ ^-(d|-no-dep)$ ]]; then
|
||||
NO_DEP=1
|
||||
elif [[ "$1" = "--no-confirm" ]]; then
|
||||
NOCONFIRM=1
|
||||
elif [[ "$1" =~ ^-. ]]; then
|
||||
@@ -395,6 +397,20 @@ installpkg() {
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
if [ "$NO_DEP" = 1 ]; then
|
||||
for ii in ${PKGNAME[@]}; do
|
||||
if [ -f $INDEX_DIR/$ii/.pkginfo ]; then
|
||||
echo "Package '$ii' already installed."
|
||||
elif [ ! $(getportpath $ii) ]; then
|
||||
echo "Package '$ii' not found."
|
||||
else
|
||||
pushd $(getportpath $ii)
|
||||
pkgbuild -i ${OPTS[@]}
|
||||
popd
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
for i in ${PKGNAME[@]}; do
|
||||
if [ -f $INDEX_DIR/$i/.pkginfo ]; then
|
||||
echo "Package '$i' already installed."
|
||||
|
||||
Reference in New Issue
Block a user