mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 08:00:05 -07:00
kiss: store newline in variable
This commit is contained in:
parent
0980dc877d
commit
4517334d8a
10
kiss
10
kiss
@ -938,8 +938,7 @@ pkg_checksums() {
|
||||
|
||||
# Store the generated checksums in a string for use internally
|
||||
# without the need for subshells.
|
||||
_hash="$_hash${_hash:+"
|
||||
"}$hash"
|
||||
_hash="$_hash${_hash:+"$newline"}$hash"
|
||||
esac
|
||||
done < "$repo_dir/sources" || die "$1" "Failed to generate checksums"
|
||||
}
|
||||
@ -1635,8 +1634,7 @@ pkg_update() {
|
||||
# Detect repository orphans (installed packages with no
|
||||
# associated repository).
|
||||
case $repo_dir in */var/db/kiss/installed/*)
|
||||
_repo_orp="$_repo_orp
|
||||
${pkg##*/}"
|
||||
_repo_orp="$_repo_orp$newline${pkg##*/}"
|
||||
esac
|
||||
|
||||
# Compare installed packages to repository packages.
|
||||
@ -1922,6 +1920,10 @@ main() {
|
||||
# in the filesystem.
|
||||
ppwd=$PWD
|
||||
|
||||
# Never know when you're gonna need one of these.
|
||||
newline="
|
||||
"
|
||||
|
||||
# The PID of the current shell process is used to isolate directories
|
||||
# to each specific KISS instance. This allows multiple package manager
|
||||
# instances to be run at once. Store the value in another variable so
|
||||
|
Loading…
Reference in New Issue
Block a user