forked from kiss-community/kiss
kiss: Fix conflict bug
This commit is contained in:
parent
751e7f3456
commit
950c575329
4
kiss
4
kiss
@ -897,7 +897,7 @@ pkg_conflicts() {
|
|||||||
printf '%s\n' "${PWD#"$KISS_ROOT"}/${file##*/}"
|
printf '%s\n' "${PWD#"$KISS_ROOT"}/${file##*/}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done < "$tar_dir/$1/$pkg_db/$1/manifest" > "$tmp_dir/.manifest"
|
done < "$tar_dir/$1/$pkg_db/$1/manifest" > "$tmp_dir/.conflict-manifest"
|
||||||
|
|
||||||
set +f
|
set +f
|
||||||
set -f "$sys_db"/*/manifest
|
set -f "$sys_db"/*/manifest
|
||||||
@ -916,7 +916,7 @@ pkg_conflicts() {
|
|||||||
[ "$#" != 0 ] || return 0
|
[ "$#" != 0 ] || return 0
|
||||||
|
|
||||||
# Store the list of found conflicts in a file for reuse.
|
# Store the list of found conflicts in a file for reuse.
|
||||||
grep -Fxf "$tmp_dir/.manifest" -- "$@" 2>/dev/null \
|
grep -Fxf "$tmp_dir/.conflict-manifest" -- "$@" 2>/dev/null \
|
||||||
> "$tmp_dir/.conflicts" ||:
|
> "$tmp_dir/.conflicts" ||:
|
||||||
|
|
||||||
if [ "$KISS_CHOICE" != 0 ] && [ -s "$tmp_dir/.conflicts" ]; then
|
if [ "$KISS_CHOICE" != 0 ] && [ -s "$tmp_dir/.conflicts" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user