From 68d4c8cad42960391998868f15e2f99b40daa216 Mon Sep 17 00:00:00 2001 From: wang-guangge Date: Tue, 19 Sep 2023 13:58:04 +0800 Subject: [PATCH] fix updateinfo_parse.py bug --- hotpatch/updateinfo_parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotpatch/updateinfo_parse.py b/hotpatch/updateinfo_parse.py index 42e3814..7bfba61 100644 --- a/hotpatch/updateinfo_parse.py +++ b/hotpatch/updateinfo_parse.py @@ -279,12 +279,12 @@ class HotpatchUpdateInfo(object): hotpatch(Hotpatch) """ hotpatch.state = self.UNRELATED + is_find_installable_hp = False for required_pkg_name, required_pkg_vere in hotpatch.required_pkgs_info.items(): inst_pkgs = self._inst_pkgs_query.filter(name=required_pkg_name) # check whether the relevant target required package is installed on this machine if not inst_pkgs: return - is_find_installable_hp = False for inst_pkg in inst_pkgs: inst_pkg_vere = '%s-%s' % (inst_pkg.version, inst_pkg.release) if not self.version.larger_than(required_pkg_vere, inst_pkg_vere): -- 2.33.0