From patchwork Mon Sep 19 21:57:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 4187 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 86A2323F98 for ; Mon, 19 Sep 2011 22:03:26 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 74EC7A18203 for ; Mon, 19 Sep 2011 22:03:26 +0000 (UTC) Received: by fxe23 with SMTP id 23so6338969fxe.11 for ; Mon, 19 Sep 2011 15:03:26 -0700 (PDT) Received: by 10.223.5.76 with SMTP id 12mr35732fau.103.1316469806232; Mon, 19 Sep 2011 15:03:26 -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.152.18.198 with SMTP id y6cs55612lad; Mon, 19 Sep 2011 15:03:25 -0700 (PDT) Received: by 10.227.55.136 with SMTP id u8mr3282897wbg.1.1316469804443; Mon, 19 Sep 2011 15:03:24 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id ek3si13876091wbb.93.2011.09.19.15.03.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Sep 2011 15:03:24 -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 1R5lvu-0003GM-At for ; Mon, 19 Sep 2011 22:03:22 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id AA279E175A for ; Mon, 19 Sep 2011 21:57:11 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 115 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 115: Fix for bug #853657 from Yongqin Message-Id: <20110919215711.22328.43108.launchpad@ackee.canonical.com> Date: Mon, 19 Sep 2011 21:57:11 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13980"; Instance="initZopeless config overlay" X-Launchpad-Hash: 87ddda50aeeba74f5b8ffe6203f093df41c629c7 Merge authors: Yongqin Liu (liuyq0307) Related merge proposals: https://code.launchpad.net/~liuyq0307/lava-dispatcher/fix-853657/+merge/75955 proposed by: Yongqin Liu (liuyq0307) review: Approve - Paul Larson (pwlars) ------------------------------------------------------------ revno: 115 [merge] committer: Paul Larson branch nick: lava-dispatcher timestamp: Mon 2011-09-19 16:55:48 -0500 message: Fix for bug #853657 from Yongqin modified: lava_dispatcher/utils.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/utils.py' --- lava_dispatcher/utils.py 2011-09-15 07:02:08 +0000 +++ lava_dispatcher/utils.py 2011-09-19 06:15:01 +0000 @@ -53,7 +53,9 @@ else: file_location = download(url, path) try: - os.makedirs(os.path.dirname(cache_loc)) + cache_dir = os.path.dirname(cache_loc) + if not os.path.exists(cache_dir): + os.makedirs(cache_dir) os.link(file_location, cache_loc) except OSError, err: #errno 18 is Invalid cross-device link