kiss: fix prompt issue. better repo orphan output

This commit is contained in:
Dylan Araps 2021-07-16 13:17:20 +03:00
parent e3941e6218
commit d2fc69655e
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 4 additions and 4 deletions

8
kiss
View File

@ -1630,7 +1630,8 @@ 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.
@ -1642,7 +1643,7 @@ pkg_update() {
log "Checking for orphaned repository packages" log "Checking for orphaned repository packages"
case $_repo_orp in *?*) case $_repo_orp in *?*)
war "Packages without repository:$_repo_orp" war "Packages without repository$_repo_orp"
esac esac
set -f set -f
@ -1652,9 +1653,7 @@ pkg_update() {
*" kiss "*) *" kiss "*)
log "Detected package manager update" log "Detected package manager update"
log "The package manager will be updated first" log "The package manager will be updated first"
prompt prompt
pkg_build_all kiss pkg_build_all kiss
log "Updated the package manager" log "Updated the package manager"
@ -1667,6 +1666,7 @@ pkg_update() {
*) *)
log "Packages to update: $*" log "Packages to update: $*"
prompt
pkg_order "$@" pkg_order "$@"
# Intentional, globbing disabled. # Intentional, globbing disabled.