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:
Eric Callahan committed 2025-11-22 15:39:11 +00:00
1 parent 3129d89f0f
commit be41e8ded6
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,