mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-05 00:25:53 +00:00
fix pkgdel did not remove symlink
This commit is contained in:
2
pkgadd
2
pkgadd
@@ -250,7 +250,7 @@ if [ ! "$IGNORE_CONFLICT" ]; then
|
||||
if [ "$line" = "${line%.*}.spkgnew" ]; then
|
||||
line=${line%.*}
|
||||
fi
|
||||
if [ -e "$ROOT/$line" ]; then
|
||||
if [ -e "$ROOT/$line" ] || [ -L "$ROOT/$line" ]; then
|
||||
if [ "$UPGRADE_PKG" ] || [ "$REINSTALL_PKG" ]; then
|
||||
if [ ! "$(grep -Fx "$line" "$INDEX_DIR/$name/.files")" ]; then
|
||||
echo "$line"
|
||||
|
||||
4
pkgdel
4
pkgdel
@@ -201,7 +201,7 @@ fi
|
||||
|
||||
if [ -f "$INDEX_DIR/$name/.bkpfiles" ]; then
|
||||
while IFS=' ' read -r line; do
|
||||
if [ -e "$ROOT/$line" ]; then
|
||||
if [ -e "$ROOT/$line" ] || [ -L "$ROOT/$line" ]; then
|
||||
[ "$VERBOSE_REMOVE" = yes ] && echo "<<< $line"
|
||||
rm "$ROOT/$line"
|
||||
fi
|
||||
@@ -209,7 +209,7 @@ if [ -f "$INDEX_DIR/$name/.bkpfiles" ]; then
|
||||
fi
|
||||
|
||||
while IFS=' ' read -r line; do
|
||||
if [ -e "$ROOT/$line" ]; then
|
||||
if [ -e "$ROOT/$line" ] || [ -L "$ROOT/$line" ]; then
|
||||
[ "$VERBOSE_REMOVE" = yes ] && echo "<<< $line"
|
||||
rm "$ROOT/$line"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user