aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/allow-unauthenticated.patch
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/allow-unauthenticated.patch
downloadaptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.tar.gz
aptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.zip
Import Upstream version 1.1.1+bzr982
Diffstat (limited to '')
-rw-r--r--debian/patches/allow-unauthenticated.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/allow-unauthenticated.patch b/debian/patches/allow-unauthenticated.patch
new file mode 100644
index 0000000..7c84232
--- /dev/null
+++ b/debian/patches/allow-unauthenticated.patch
@@ -0,0 +1,23 @@
+Description: Forward allow_unauthenticated to python-apt
+ Forward the allow_unauthenticated flag to python-apt so packages can continue
+ to be downloaded without them being authenticated, avoiding breakage with recent
+ python-apt uploads.
+Author: Julian Andres Klode <juliank@ubuntu.com>
+Origin: vendor
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1858973
+--- a/aptdaemon/worker/aptworker.py
++++ b/aptdaemon/worker/aptworker.py
+@@ -1068,7 +1068,12 @@ class AptWorker(BaseWorker):
+ end=install_range[1])
+ with self._frozen_status():
+ try:
+- self._cache.commit(fetch_progress, inst_progress)
++ # This was backported as
++ if "allow_unauthenticated" in apt.Cache.commit.__doc__:
++ self._cache.commit(fetch_progress, inst_progress,
++ allow_unauthenticated=trans.allow_unauthenticated)
++ else:
++ self._cache.commit(fetch_progress, inst_progress)
+ except apt.cache.FetchFailedException as error:
+ raise TransactionFailed(ERROR_PACKAGE_DOWNLOAD_FAILED,
+ str(error))