system_deploy: fix Info enum instantiation
The info_code included in the package signal may contain a "package_severity" value in the upper 16-bits. Mask off the lower 16 bits to avoid an instantiation error. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
1 file changed
+1
-1
@@ -391,7 +391,7 @@ class PackageKitTransaction:
|
||||
package_id: str,
|
||||
summary: str
|
||||
) -> None:
|
||||
info = PkEnum.Info.from_index(info_code)
|
||||
info = PkEnum.Info.from_index(info_code & 0xFFFF)
|
||||
if self._role in self.GET_PKG_ROLES:
|
||||
pkg_data = {
|
||||
'package_id': package_id,
|
||||
|
||||
Reference in new issue
Block a user