kiss: minor changes

This commit is contained in:
Dylan Araps 2020-05-30 13:18:29 +03:00
parent 79fec5bf70
commit 46b48e4003
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

11
kiss
View File

@ -414,10 +414,9 @@ pkg_order() {
# Filter the list, only keeping explicit packages. The purpose of these
# two loops is to order the argument list based on dependence.
for pkg in $deps; do contains "$*" "$pkg" && {
order="$order $pkg "
redro=" $pkg $redro"
} done
for pkg in $deps; do
contains "$*" "$pkg" && order="$order $pkg " redro=" $pkg $redro"
done
deps=
}
@ -549,6 +548,8 @@ pkg_etcsums() (
cd "$pkg_dir/$1"
# This can't be a simple 'find -exec' as 'sh256' is a shell function
# and not a real command of any kind. This is the shell equivalent.
find etc -type f | while read -r line; do
sh256 "$line"
done > "$pkg_dir/$1/$pkg_db/$1/etcsums"
@ -972,7 +973,7 @@ pkg_install_files() {
chmod "$b$oct" "$KISS_ROOT/$line"
fi
esac
done
done ||:
}
pkg_remove_files() {