1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00

kiss: improve install performance slightly

This commit is contained in:
Dylan Araps 2021-07-07 10:30:43 +03:00
parent 9d34420bee
commit 001ce0396f
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

4
kiss
View File

@ -1019,7 +1019,7 @@ pkg_install_files() {
# Reverse the manifest file so that we start shallow and go deeper as we # Reverse the manifest file so that we start shallow and go deeper as we
# iterate over each item. This is needed so that directories are created # iterate over each item. This is needed so that directories are created
# going down the tree. # going down the tree.
sort "$2/$pkg_db/${2##*/}/manifest" | sort "$2/$pkg_db/${2##*/}/manifest" > "$mak_dir/if"
while read -r file; do while read -r file; do
# Grab the octal permissions so that directory creation # Grab the octal permissions so that directory creation
@ -1066,7 +1066,7 @@ pkg_install_files() {
[ -h "$_file" ] || chmod "$b$oct" "$_file" [ -h "$_file" ] || chmod "$b$oct" "$_file"
} }
esac esac
done || : done < "$mak_dir/if" || :
} }
pkg_remove_files() { pkg_remove_files() {