forked from kiss-community/kiss
kiss: Inform the user of any repository orphans.
During updates the package manager will now tell you if a package has been dropped from repositories - ie, the only place the package exists is in /var/db/kiss/installed.
This commit is contained in:
parent
c2fbc4193f
commit
f8078d884a
11
kiss
11
kiss
@ -1477,6 +1477,12 @@ pkg_update() {
|
|||||||
|
|
||||||
pkg_find_version "${pkg##*/}"
|
pkg_find_version "${pkg##*/}"
|
||||||
|
|
||||||
|
# Detect repository orphans (installed packages with no
|
||||||
|
# associated repository).
|
||||||
|
case $repo_dir in */var/db/kiss/installed/*)
|
||||||
|
_repo_orp="$_repo_orp ${pkg##*/}"
|
||||||
|
esac
|
||||||
|
|
||||||
# Compare installed packages to repository packages.
|
# Compare installed packages to repository packages.
|
||||||
[ "$db_ver-$db_rel" = "$repo_ver-$repo_rel" ] || {
|
[ "$db_ver-$db_rel" = "$repo_ver-$repo_rel" ] || {
|
||||||
printf '%s\n' "${pkg##*/} $db_ver-$db_rel ==> $repo_ver-$repo_rel"
|
printf '%s\n' "${pkg##*/} $db_ver-$db_rel ==> $repo_ver-$repo_rel"
|
||||||
@ -1484,6 +1490,11 @@ pkg_update() {
|
|||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
log "Checking for orphaned repository packages"
|
||||||
|
case $_repo_orp in *?*)
|
||||||
|
war "Packages without repository:$_repo_orp"
|
||||||
|
esac
|
||||||
|
|
||||||
set -f
|
set -f
|
||||||
|
|
||||||
case " $* " in
|
case " $* " in
|
||||||
|
Loading…
Reference in New Issue
Block a user