mirror of
https://codeberg.org/kiss-community/kiss
synced 2025-01-12 22:00:09 -07:00
kiss: drop KISS_GREP
This commit is contained in:
parent
8d6c3b5a28
commit
9792496e1a
13
kiss
13
kiss
@ -154,7 +154,7 @@ pkg_owner() {
|
|||||||
[ "$3" ] ||
|
[ "$3" ] ||
|
||||||
set -- "$1" "$2" "$sys_db"/*/manifest
|
set -- "$1" "$2" "$sys_db"/*/manifest
|
||||||
|
|
||||||
pkg_owner=$("$grep" "$@")
|
pkg_owner=$(grep "$@")
|
||||||
pkg_owner=${pkg_owner%/*}
|
pkg_owner=${pkg_owner%/*}
|
||||||
pkg_owner=${pkg_owner##*/}
|
pkg_owner=${pkg_owner##*/}
|
||||||
|
|
||||||
@ -876,7 +876,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/.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
|
||||||
@ -1031,7 +1031,7 @@ pkg_remove_files() {
|
|||||||
case $file in
|
case $file in
|
||||||
/etc/?*[!/])
|
/etc/?*[!/])
|
||||||
sum_sys=$(sh256 "$KISS_ROOT/$file") ||:
|
sum_sys=$(sh256 "$KISS_ROOT/$file") ||:
|
||||||
sum_old=$("$grep" -F "$sum_sys" "$tmp_dir/.etcsums") ||:
|
sum_old=$(grep -F "$sum_sys" "$tmp_dir/.etcsums") ||:
|
||||||
|
|
||||||
[ "$sum_sys" = "$sum_old" ] || {
|
[ "$sum_sys" = "$sum_old" ] || {
|
||||||
printf 'Skipping %s (modified)\n' "$file"
|
printf 'Skipping %s (modified)\n' "$file"
|
||||||
@ -1101,7 +1101,7 @@ pkg_remove() {
|
|||||||
[ "$KISS_FORCE" = 1 ] || (
|
[ "$KISS_FORCE" = 1 ] || (
|
||||||
cd "$sys_db"
|
cd "$sys_db"
|
||||||
set +f
|
set +f
|
||||||
! "$grep" -lFx "$1" -- */depends
|
! grep -lFx "$1" -- */depends
|
||||||
|
|
||||||
) || die "$1" "can't remove package, others depend on it"
|
) || die "$1" "can't remove package, others depend on it"
|
||||||
|
|
||||||
@ -1197,7 +1197,7 @@ pkg_install() {
|
|||||||
log "$pkg" "installing package"
|
log "$pkg" "installing package"
|
||||||
pkg_install_files -z "$tar_dir/$pkg"
|
pkg_install_files -z "$tar_dir/$pkg"
|
||||||
|
|
||||||
"$grep" -vFxf "$sys_db/$pkg/manifest" "$tmp_dir/.manifest" \
|
grep -vFxf "$sys_db/$pkg/manifest" "$tmp_dir/.manifest" \
|
||||||
2>/dev/null | pkg_remove_files
|
2>/dev/null | pkg_remove_files
|
||||||
|
|
||||||
log "$pkg" "verifying installation"
|
log "$pkg" "verifying installation"
|
||||||
@ -1567,9 +1567,6 @@ main() {
|
|||||||
command -v llvm-readelf
|
command -v llvm-readelf
|
||||||
)"} || elf_cmd=ldd
|
)"} || elf_cmd=ldd
|
||||||
|
|
||||||
# Allow users to override default grep.
|
|
||||||
grep=${KISS_GREP:=grep}
|
|
||||||
|
|
||||||
# Store the date and time of script invocation to be used as the name of
|
# Store the date and time of script invocation to be used as the name of
|
||||||
# the log files the package manager creates uring builds.
|
# the log files the package manager creates uring builds.
|
||||||
date=$(date +%Y-%m-%d-%H:%M:%S)
|
date=$(date +%Y-%m-%d-%H:%M:%S)
|
||||||
|
Loading…
Reference in New Issue
Block a user