mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-03-22 09:45:06 +00:00
updated
This commit is contained in:
13
pkgadd
13
pkgadd
@@ -253,18 +253,17 @@ if [ ! "$IGNORE_CONFLICT" ]; then
|
||||
if [ -e "$ROOT/$line" ]; then
|
||||
if [ "$UPGRADE_PKG" ] || [ "$REINSTALL_PKG" ]; then
|
||||
if [ ! "$(grep -Fx "$line" "$INDEX_DIR/$name/.files")" ]; then
|
||||
fileconflict+=(${line})
|
||||
echo "$line"
|
||||
conflictedfile=yes
|
||||
fi
|
||||
else
|
||||
fileconflict+=(${line})
|
||||
echo "$line"
|
||||
conflictedfile=yes
|
||||
fi
|
||||
fi
|
||||
done < <(cat $TMP_PKGADD | grep -Ev '(.pkginfo|.pkginstall|.pkgreadme)' | grep -v '/$')
|
||||
|
||||
if [ "${#fileconflict[@]}" -gt 0 ]; then
|
||||
for fc in ${fileconflict[@]}; do
|
||||
echo "$fc"
|
||||
done
|
||||
|
||||
if [ "$conflictedfile" = "yes" ]; then
|
||||
msgerr "File conflict found!"
|
||||
ret 1
|
||||
fi
|
||||
|
||||
4
pkgbase
4
pkgbase
@@ -23,6 +23,8 @@ for pkg in $allinstalled; do
|
||||
fi
|
||||
done
|
||||
|
||||
scratch remove $remove
|
||||
if [ -n "$remove" ]; then
|
||||
scratch remove $remove
|
||||
fi
|
||||
|
||||
exit $?
|
||||
|
||||
4
pkgdel
4
pkgdel
@@ -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" ]; then
|
||||
[ "$VERBOSE_REMOVE" = yes ] && echo "<<< $line"
|
||||
rm "$ROOT/$line"
|
||||
fi
|
||||
@@ -217,7 +217,7 @@ done < <(tac $INDEX_DIR/$name/.files | grep -v '/$')
|
||||
|
||||
while IFS=' ' read -r line; do
|
||||
if [ ! "$(grep -R --exclude-dir="$name" -w "$line" "$INDEX_DIR")" ]; then
|
||||
if [ -d $ROOT/$line ]; then
|
||||
if [ -d "$ROOT/$line" ]; then
|
||||
[ "$VERBOSE_REMOVE" = yes ] && echo "<<< $line"
|
||||
rmdir "$ROOT/$line"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user