diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 88: workaround to disable file cache from Chi Thu

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

Commit Message

Paul Larson Aug. 18, 2011, 2:21 p.m. UTC
Merge authors:
  Le Chi Thu le.chi.thu@linaro.org <le.chi.thu@linaro.org>
Related merge proposals:
  https://code.launchpad.net/~le-chi-thu/lava-test/disable-file-cache/+merge/71766
  proposed by: Le Chi Thu (le-chi-thu)
  review: Approve - Zygmunt Krynicki (zkrynicki)
------------------------------------------------------------
revno: 88 [merge]
committer: Paul Larson <paul.larson@linaro.org>
branch nick: lava-test
timestamp: Thu 2011-08-18 15:18:57 +0100
message:
  workaround to disable file cache from Chi Thu
modified:
  abrek/cache.py


--
lp:lava-test
https://code.launchpad.net/~linaro-validation/lava-test/trunk

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

Patch

=== modified file 'abrek/cache.py'
--- abrek/cache.py	2011-06-28 12:51:57 +0000
+++ abrek/cache.py	2011-08-16 19:18:30 +0000
@@ -56,7 +56,11 @@ 
         Like urlopen.open() but the content may be cached.
         """
         # Do not cache local files, this is not what users would expect
-        if url.startswith("file://"):
+
+        # workaround - not using cache at all.
+        # TODO: fix this and use the cache
+        # if url.startswith("file://"):
+        if True:
             stream = urllib2.urlopen(url)
         else:
             key = self._key_for_url(url)