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