diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 457: Add a workaround for bug 885895, while it's not fixed in python-apt

Message ID 20111114192313.19819.46250.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Guilherme Salgado Nov. 14, 2011, 7:23 p.m. UTC
Merge authors:
  Guilherme Salgado (salgado)
Related merge proposals:
  https://code.launchpad.net/~salgado/linaro-image-tools/bug-885895/+merge/82149
  proposed by: Guilherme Salgado (salgado)
  review: Approve - Mattias Backman (mabac)
------------------------------------------------------------
revno: 457 [merge]
committer: Guilherme Salgado <guilherme.salgado@linaro.org>
branch nick: trunk
timestamp: Mon 2011-11-14 16:17:29 -0300
message:
  Add a workaround for bug 885895, while it's not fixed in python-apt
modified:
  linaro_image_tools/hwpack/packages.py


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro_image_tools/hwpack/packages.py'
--- linaro_image_tools/hwpack/packages.py	2011-08-10 22:12:11 +0000
+++ linaro_image_tools/hwpack/packages.py	2011-11-14 13:32:51 +0000
@@ -506,6 +506,8 @@ 
                     'Package: *\n'
                     'Pin: release l=%s\n'
                     'Pin-Priority: 1001\n' % self.prefer_label)
+        # XXX: This is a temporary workaround for bug 885895.
+        apt_pkg.config.set("Dir::bin::dpkg", "/bin/false")
         self.cache = Cache(rootdir=self.tempdir, memonly=True)
         logger.debug("Updating apt cache")
         self.cache.update()