aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-04-05 06:50:01 +0000
committermerakor <cem@ckyln.com>2021-04-05 06:50:01 +0000
commitfef75071af3949a272826986559406907d3a66bb (patch)
tree486d52a5de76dceb22ac9c4dd224d05a7a8688c4
parent81b404593fd61c7505a85523688222bd88bba551 (diff)
downloadcpt-fef75071af3949a272826986559406907d3a66bb.tar.gz
pkg_updates(): fix handling interrupts during version check
FossilOrigin-Name: 69c1bc599a5f6e9127ac31af9c8334d427b52746d0c10723fe4938b443c3d158
-rw-r--r--src/cpt-lib.in4
1 files changed, 2 insertions, 2 deletions
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" ] && {