From patchwork Thu Aug 18 14:21:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 3504 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8600623F18 for ; Thu, 18 Aug 2011 14:21:34 +0000 (UTC) Received: from mail-ew0-f52.google.com (mail-ew0-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 5D4F1A180B3 for ; Thu, 18 Aug 2011 14:21:34 +0000 (UTC) Received: by ewy28 with SMTP id 28so1072488ewy.11 for ; Thu, 18 Aug 2011 07:21:34 -0700 (PDT) Received: by 10.213.32.131 with SMTP id c3mr1761881ebd.94.1313677293945; Thu, 18 Aug 2011 07:21:33 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.213.102.5 with SMTP id e5cs75654ebo; Thu, 18 Aug 2011 07:21:31 -0700 (PDT) Received: by 10.216.190.136 with SMTP id e8mr671522wen.20.1313677286788; Thu, 18 Aug 2011 07:21:26 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id v17si5739870wec.127.2011.08.18.07.21.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 07:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1Qu3TF-0007HP-DG for ; Thu, 18 Aug 2011 14:21:21 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 5AA28E033E for ; Thu, 18 Aug 2011 14:21:21 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 88 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Thu, 18 Aug 2011 14:21:21 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: ba99543a138f66d1c99a1215e37da5770cfa2df8 Merge authors: Le Chi Thu 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 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 === 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)