diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 580: Workaroun IOError in test case.

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

Commit Message

Milo Casagrande Oct. 18, 2012, 1:10 p.m. UTC
------------------------------------------------------------
revno: 580
fixes bug: https://launchpad.net/bugs/1067786
author: Fathi Boudra <fathi.boudra@linaro.org>
committer: Milo Casagrande <milo@ubuntu.com>
branch nick: trunk
timestamp: Thu 2012-10-18 15:09:21 +0200
message:
  Workaroun IOError in test case.
modified:
  linaro_image_tools/hwpack/builder.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/builder.py'
--- linaro_image_tools/hwpack/builder.py	2012-10-17 16:04:35 +0000
+++ linaro_image_tools/hwpack/builder.py	2012-10-18 13:09:21 +0000
@@ -370,6 +370,11 @@ 
         build_info_available = 0
         for deb_pkg in self.packages:
             deb_pkg_file_path = deb_pkg.filepath
+            # FIXME: test deb_pkg_dir to work around
+            # https://bugs.launchpad.net/bugs/1067786
+            deb_pkg_dir = os.path.dirname(deb_pkg_file_path)
+            if deb_pkg_dir != cache_dir:
+                continue
             if os.path.islink(deb_pkg_file_path):
                 # Skip symlink-ed debian package file
                 # e.g. fetched package with dummy information