misc: nit

This commit is contained in:
Dylan Araps 2021-07-02 12:22:16 +00:00
parent c4cd821456
commit c02e58c395
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

8
kiss
View File

@ -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" ] || {