Package: isenkram
Version: 0.36
Tags: patch

The packagekit transaction flags are currently used incorrectly. See the
below patch which fixes this bug.

---

>From a56e8119cee2e72201582905309644b24b08eb3d Mon Sep 17 00:00:00 2001
From: segfault <segfa...@riseup.net>
Date: Mon, 16 Oct 2017 01:37:55 +0200
Subject: [PATCH] Fix incorrect transaction flags

Packagekit expects the transaction flags as a bit field, but in the
python bindings the flags are an enumeration.
---
 isenkramd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/isenkramd b/isenkramd
index a3bdd39..3d700fe 100755
--- a/isenkramd
+++ b/isenkramd
@@ -232,7 +232,7 @@ class PackageKitInstaller(object):

         # Start package installation
         results = client.install_packages(
-            packagekit.TransactionFlagEnum.ONLY_TRUSTED, package_ids +
[None],
+            1 << packagekit.TransactionFlagEnum.ONLY_TRUSTED,
package_ids + [None],
             None, self.progress_callback, self)
         self._assert_success(results)

Reply via email to