Merge lp:~vorlon/ubuntu/quantal/aptdaemon/apt-key-apt-config into lp:~vorlon/ubuntu/quantal/aptdaemon/py3

Proposed by Steve Langasek
Status: Merged
Merge reported by: Steve Langasek
Merged at revision: not available
Proposed branch: lp:~vorlon/ubuntu/quantal/aptdaemon/apt-key-apt-config
Merge into: lp:~vorlon/ubuntu/quantal/aptdaemon/py3
Diff against target: 24 lines (+4/-0)
2 files modified
aptdaemon/test.py (+1/-0)
debian/changelog (+3/-0)
To merge this branch: bzr merge lp:~vorlon/ubuntu/quantal/aptdaemon/apt-key-apt-config
Reviewer Review Type Date Requested Status
Adam Conrad (community) Approve
Sebastian Heinlein Pending
Review via email: mp+109919@code.launchpad.net

Description of the change

Simple enough change, but I'm confused as to how this issue ever made it
in in the first place given that it causes a hard testsuite failure. Am
I missing something?

To post a comment you must log in.
Revision history for this message
Adam Conrad (adconrad) wrote :

Seems perfectly reasonable, especially given that in the remove method, there's an "apt_pkg.config.clear("Dir")", but there was no matching attempt to set Dir anywhere. Seems like it was probably just omitted accidentally.

review: Approve
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

You are right, steve. We set apt_pkg.config["dir"] in the test_pk but i haven't made a complete run of the test suite. Thanks.
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Adam Conrad <adconrad@0c3.net> schrieb:

Review: Approve

Seems perfectly reasonable, especially given that in the remove method, there's an "apt_pkg.config.clear("Dir")", but there was no matching attempt to set Dir anywhere. Seems like it was probably just omitted accidentally.
--
https://code.launchpad.net/~vorlon/ubuntu/quantal/aptdaemon/apt-key-apt-config/+merge/109919
You are requested to review the proposed merge of lp:~vorlon/ubuntu/quantal/aptdaemon/apt-key-apt-config into lp:~vorlon/ubuntu/quantal/aptdaemon/py3.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'aptdaemon/test.py'
2--- aptdaemon/test.py 2012-06-12 19:03:12 +0000
3+++ aptdaemon/test.py 2012-06-12 20:13:20 +0000
4@@ -79,6 +79,7 @@
5 cnf.write("Dir::Bin::Apt-Key %s;" % apt_key_wrapper)
6 apt_pkg.read_config_file(apt_pkg.config, config_path)
7 apt_pkg.init_system()
8+ apt_pkg.config["Dir"] = self.path
9
10 def remove(self):
11 """Remove the files of the chroot."""
12
13=== modified file 'debian/changelog'
14--- debian/changelog 2012-06-12 19:03:12 +0000
15+++ debian/changelog 2012-06-12 20:13:20 +0000
16@@ -27,6 +27,9 @@
17 * debian/control:
18 - Remove python-software-properties dependency in favor of new
19 python-apt with apt.auth module
20+ * aptdaemon/test.py: explicitly set the chroot directory in the apt config
21+ as part of the test setup, without which apt-key's chroot handling won't
22+ work.
23
24 -- Sebastian Heinlein <glatzor@ubuntu.com> Fri, 11 May 2012 08:39:34 -0700
25

Subscribers

People subscribed via source and target branches

to all changes: