This commit is contained in:
emmett1
2019-01-22 00:15:47 +08:00
parent ae83efe1c3
commit b4527ce34b
2 changed files with 7 additions and 7 deletions

View File

@@ -163,12 +163,12 @@ if [ ! "$INSTALLED" ] && [ ! "$NOT_INSTALLED" ] && [ ! "$MISSING" ]; then
fi
# check for ports existence
for pkg in ${PKG[@]}; do
if [ ! $(getportpath $pkg) ]; then
msgerr "Package '$pkg' not found."
exit 1
fi
done
#for pkg in ${PKG[@]}; do
#if [ ! $(getportpath $pkg) ]; then
#msgerr "Package '$pkg' not found."
#exit 1
#fi
#done
# calculate dependencies
for pkg in ${PKG[@]}; do

View File

@@ -338,7 +338,7 @@ showdependent() {
fi
done
[ "$GDP" ] || msg "No package depends on '$1'."
[ "$GDP" ] && return 0 || return 1
}
checkowner() {