Merge lp:~salgado/linaro-image-tools/bug-885895 into lp:linaro-image-tools/11.11

Proposed by Guilherme Salgado
Status: Merged
Approved by: Mattias Backman
Approved revision: 457
Merged at revision: 457
Proposed branch: lp:~salgado/linaro-image-tools/bug-885895
Merge into: lp:linaro-image-tools/11.11
Diff against target: 12 lines (+2/-0)
1 file modified
linaro_image_tools/hwpack/packages.py (+2/-0)
To merge this branch: bzr merge lp:~salgado/linaro-image-tools/bug-885895
Reviewer Review Type Date Requested Status
Mattias Backman (community) Approve
Review via email: mp+82149@code.launchpad.net

Description of the change

Add a workaround for bug 885895; needed while python-apt is not fixed.

To post a comment you must log in.
Revision history for this message
Mattias Backman (mabac) wrote :

It works on my 32 bit machine. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'linaro_image_tools/hwpack/packages.py'
2--- linaro_image_tools/hwpack/packages.py 2011-08-10 22:12:11 +0000
3+++ linaro_image_tools/hwpack/packages.py 2011-11-14 14:23:23 +0000
4@@ -506,6 +506,8 @@
5 'Package: *\n'
6 'Pin: release l=%s\n'
7 'Pin-Priority: 1001\n' % self.prefer_label)
8+ # XXX: This is a temporary workaround for bug 885895.
9+ apt_pkg.config.set("Dir::bin::dpkg", "/bin/false")
10 self.cache = Cache(rootdir=self.tempdir, memonly=True)
11 logger.debug("Updating apt cache")
12 self.cache.update()

Subscribers

People subscribed via source and target branches