forked from kiss-community/kiss
misc: nit
This commit is contained in:
parent
c4cd821456
commit
c02e58c395
8
kiss
8
kiss
@ -1410,11 +1410,11 @@ pkg_updates() {
|
|||||||
set +f --
|
set +f --
|
||||||
|
|
||||||
for pkg in "$sys_db/"*; do
|
for pkg in "$sys_db/"*; do
|
||||||
{
|
read -r db_ver db_rel < "$pkg/version" ||
|
||||||
read -r db_ver db_rel < "$pkg/version"
|
die "${pkg##*/}" "Failed to read installed version"
|
||||||
read -r re_ver re_rel < "$(pkg_find "${pkg##*/}")/version"
|
|
||||||
|
|
||||||
} || die "$pkg" "Failed to read version"
|
read -r re_ver re_rel < "$(pkg_find "${pkg##*/}")/version" ||
|
||||||
|
die "${pkg##*/}" "Failed to read repository version"
|
||||||
|
|
||||||
# Compare installed packages to repository packages.
|
# Compare installed packages to repository packages.
|
||||||
[ "$db_ver-$db_rel" = "$re_ver-$re_rel" ] || {
|
[ "$db_ver-$db_rel" = "$re_ver-$re_rel" ] || {
|
||||||
|
Loading…
Reference in New Issue
Block a user