1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

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 # Filter the list, only keeping explicit packages. The purpose of these
# two loops is to order the argument list based on dependence. # two loops is to order the argument list based on dependence.
for pkg in $deps; do contains "$*" "$pkg" && { for pkg in $deps; do
order="$order $pkg " contains "$*" "$pkg" && order="$order $pkg " redro=" $pkg $redro"
redro=" $pkg $redro" done
} done
deps= deps=
} }
@ -549,6 +548,8 @@ pkg_etcsums() (
cd "$pkg_dir/$1" 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 find etc -type f | while read -r line; do
sh256 "$line" sh256 "$line"
done > "$pkg_dir/$1/$pkg_db/$1/etcsums" done > "$pkg_dir/$1/$pkg_db/$1/etcsums"
@ -972,7 +973,7 @@ pkg_install_files() {
chmod "$b$oct" "$KISS_ROOT/$line" chmod "$b$oct" "$KISS_ROOT/$line"
fi fi
esac esac
done done ||:
} }
pkg_remove_files() { pkg_remove_files() {