misc: whitespace

This commit is contained in:
Dylan Araps 2021-07-14 11:32:57 +03:00
parent 51a101f96e
commit e671914090
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 11 additions and 11 deletions

22
kiss
View File

@ -214,13 +214,13 @@ pkg_find() {
# values in variables. # values in variables.
case $2-$# in case $2-$# in
*-4) *-4)
# A package may also not be found due to a repository not being # A package may also not be found due to a repository not being
# readable by the current user. Either way, we need to die here. # readable by the current user. Either way, we need to die here.
return 1 return 1
;; ;;
-*) -*)
repo_dir=$5 repo_dir=$5
;; ;;
*) *)
@ -1379,27 +1379,27 @@ pkg_install() {
# Removes all risk of the user aborting a package installation leaving # Removes all risk of the user aborting a package installation leaving
# an incomplete package installed. # an incomplete package installed.
trap '' INT trap '' INT
{ {
# Install the package's files by iterating over its manifest. # Install the package's files by iterating over its manifest.
pkg_install_files -z "$tar_dir/$pkg_name" < "$mak_dir/if" pkg_install_files -z "$tar_dir/$pkg_name" < "$mak_dir/if"
# Handle /etc/ files in a special way (via a 3-way checksum) to # Handle /etc/ files in a special way (via a 3-way checksum) to
# determine how these files should be installed. Do we overwrite the # determine how these files should be installed. Do we overwrite the
# existing file? Do we install it as $file.new to avoid deleting user # existing file? Do we install it as $file.new to avoid deleting user
# configuration? etc. # configuration? etc.
# #
# This is more or less similar to Arch Linux's Pacman with the user # This is more or less similar to Arch Linux's Pacman with the user
# manually handling the .new files when and if they appear. # manually handling the .new files when and if they appear.
pkg_etc pkg_etc
# This is the aforementioned step removing any files from the old # This is the aforementioned step removing any files from the old
# version of the package if the installation is an update. Each file # version of the package if the installation is an update. Each file
# type has to be specially handled to ensure no system breakage occurs. # type has to be specially handled to ensure no system breakage occurs.
grep -vFxf "$sys_db/$pkg_name/manifest" "$mak_dir/m" 2>/dev/null | grep -vFxf "$sys_db/$pkg_name/manifest" "$mak_dir/m" 2>/dev/null |
pkg_remove_files pkg_remove_files
# Install the package's files a second time to fix any mess caused by # Install the package's files a second time to fix any mess caused by
# the above removal of the previous version of the package. # the above removal of the previous version of the package.
log "$pkg_name" "Verifying installation" log "$pkg_name" "Verifying installation"
pkg_install_files -e "$tar_dir/$pkg_name" < "$mak_dir/if" pkg_install_files -e "$tar_dir/$pkg_name" < "$mak_dir/if"
@ -1504,7 +1504,7 @@ pkg_update() {
# Detect repository orphans (installed packages with no # Detect repository orphans (installed packages with no
# associated repository). # associated repository).
case $repo_dir in */var/db/kiss/installed/*) case $repo_dir in */var/db/kiss/installed/*)
_repo_orp="$_repo_orp ${pkg##*/}" _repo_orp="$_repo_orp ${pkg##*/}"
esac esac
# Compare installed packages to repository packages. # Compare installed packages to repository packages.