forked from kiss-community/kiss
kiss: minor changes
This commit is contained in:
parent
79b3def229
commit
96a2f18566
@ -2,6 +2,7 @@
|
||||
# List orphaned packages
|
||||
|
||||
cd "$KISS_ROOT/var/db/kiss/installed/"
|
||||
set -- *
|
||||
|
||||
for pkg in *; do
|
||||
case $pkg in
|
||||
|
18
kiss
18
kiss
@ -576,7 +576,11 @@ pkg_build() {
|
||||
for pkg do
|
||||
! contains "$explicit_build" "$pkg" && pkg_cache "$pkg" && {
|
||||
log "$pkg" "Installing binary from cache"
|
||||
(KISS_FORCE=1 args i "$tar_file")
|
||||
|
||||
(
|
||||
KISS_FORCE=1
|
||||
args i "$tar_file"
|
||||
)
|
||||
|
||||
# Remove the now installed package from the build list.
|
||||
shift
|
||||
@ -657,7 +661,11 @@ pkg_build() {
|
||||
contains "$explicit" "$pkg" && [ -z "$pkg_update" ] && continue
|
||||
|
||||
log "$pkg" "Needed as a dependency or has an update, installing"
|
||||
(KISS_FORCE=1 args i "$pkg")
|
||||
|
||||
(
|
||||
KISS_FORCE=1
|
||||
args i "$pkg"
|
||||
)
|
||||
done
|
||||
|
||||
log "Successfully built all packages"
|
||||
@ -1484,7 +1492,11 @@ main() {
|
||||
|
||||
# Figure out which 'sudo' command to use based on the user's choice or what
|
||||
# is available on the system.
|
||||
su=${KISS_SU:-"$(command -v sudo || command -v doas || command -v sls)"} ||:
|
||||
su=${KISS_SU:-"$(
|
||||
command -v sudo ||
|
||||
command -v doas ||
|
||||
command -v sls
|
||||
)"} || su=su
|
||||
|
||||
# Store the date and time of script invocation to be used as the name of
|
||||
# the log files the package manager creates uring builds.
|
||||
|
Loading…
Reference in New Issue
Block a user