system_deploy: check update severity bits in info_code
The update severity is stored in the upper 16 bits of the info code in newer versions of package kit. Some backends may omit the lower 16-bits and only store the severity, in those cases use the update severity enum value in place of the info value. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
1 parent
b3f9566b8b
commit
bdeddcabad
1 file changed
+3
@@ -392,6 +392,9 @@ class PackageKitTransaction:
|
||||
summary: str
|
||||
) -> None:
|
||||
info = PkEnum.Info.from_index(info_code & 0xFFFF)
|
||||
severity = PkEnum.Info.from_index((info_code >> 16) & 0xFFFF)
|
||||
if info == PkEnum.Info.UNKNOWN:
|
||||
info = severity
|
||||
if self._role in self.GET_PKG_ROLES:
|
||||
pkg_data = {
|
||||
'package_id': package_id,
|
||||
|
||||
Reference in new issue
Block a user