aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/fix-high-trust-pkcompat.diff
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahm@jadupc.com>2023-08-03 16:33:41 +0600
committerLibravatar Mubashshir <ahm@jadupc.com>2023-08-03 16:33:41 +0600
commit70faa8e9a0ff3cba74b4f753e257d56b768fcbd2 (patch)
tree3a49460715f7319d100e0cc9c1a278758500c7c8 /debian/patches/fix-high-trust-pkcompat.diff
downloadaptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.tar.gz
aptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.zip
Import Upstream version 1.1.1+bzr982
Diffstat (limited to 'debian/patches/fix-high-trust-pkcompat.diff')
-rw-r--r--debian/patches/fix-high-trust-pkcompat.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/fix-high-trust-pkcompat.diff b/debian/patches/fix-high-trust-pkcompat.diff
new file mode 100644
index 0000000..6084b5c
--- /dev/null
+++ b/debian/patches/fix-high-trust-pkcompat.diff
@@ -0,0 +1,16 @@
+Index: aptdaemon/aptdaemon/worker/aptworker.py
+===================================================================
+--- aptdaemon.orig/aptdaemon/worker/aptworker.py
++++ aptdaemon/aptdaemon/worker/aptworker.py
+@@ -113,8 +113,10 @@ def trans_only_installs_pkgs_from_high_t
+ # paranoia(2): we must want to install something
+ if not trans.packages[PKGS_INSTALL]:
+ return False
++ # we only care about the name, not the version
++ pkgs = [pkg.split("=")[0] for pkg in trans.packages[PKGS_INSTALL]]
+ # if the install packages matches the whitelisted set we are good
+- return set(trans.packages[PKGS_INSTALL]) == set(trans.high_trust_packages)
++ return set(pkgs) == set(trans.high_trust_packages)
+
+
+ def read_high_trust_repository_dir(whitelist_cfg_d):