From fef75071af3949a272826986559406907d3a66bb Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 5 Apr 2021 06:50:01 +0000 Subject: pkg_updates(): fix handling interrupts during version check FossilOrigin-Name: 69c1bc599a5f6e9127ac31af9c8334d427b52746d0c10723fe4938b443c3d158 --- src/cpt-lib.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 30b1f2b..9ddee72 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1792,8 +1792,8 @@ pkg_updates(){ # Read version and release information from the installed packages # and repository. - read -r db_ver db_rel < "$pkg/version" - read -r re_ver re_rel < "$(pkg_find "$pkg_name")/version" + read -r db_ver db_rel < "$pkg/version" || exit 1 + read -r re_ver re_rel < "$(pkg_find "$pkg_name")/version" || exit 1 # Compare installed packages to repository packages. [ "$db_ver-$db_rel" != "$re_ver-$re_rel" ] && { -- cgit v1.2.3