diff options
Diffstat (limited to 'debian/patches/allow-unauthenticated.patch')
-rw-r--r-- | debian/patches/allow-unauthenticated.patch | 23 |
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)) |