1
Description: Fix unnoticed installation of unauthenticated packages
2
Aptdaemon only checks for unauthenticated packages during the simulation of
3
a transaction. It should also check directly before applying the changes
4
to catch changes between the simulation and the application.
5
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/959131
6
Author: Michael Vogt <michael.vogt@ubuntu.com>
8
Index: aptdaemon-0.43+bzr697/aptdaemon/worker.py
9
===================================================================
10
--- aptdaemon-0.43+bzr697.orig/aptdaemon/worker.py 2012-03-28 13:41:46.000000000 -0400
11
+++ aptdaemon-0.43+bzr697/aptdaemon/worker.py 2012-03-28 13:45:48.645868886 -0400
14
# Check if any of the cache changes get installed from an
15
# unauthenticated repository""
16
+ trans.unauthenticated = self._get_unauthenticated()
17
if not trans.allow_unauthenticated and trans.unauthenticated:
18
raise TransactionFailed(ERROR_PACKAGE_UNAUTHENTICATED,
19
" ".join(sorted(trans.unauthenticated)))
20
+ if trans.unauthenticated:
21
+ log.warn("unauthenticated packages but forcing install")
24
raise TransactionCancelled()
25
trans.cancellable = False