From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Swy5p-0004v8-Rp for bitbake-devel@lists.openembedded.org; Thu, 02 Aug 2012 18:17:46 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q72G61jH009416; Thu, 2 Aug 2012 17:06:01 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05174-07; Thu, 2 Aug 2012 17:05:57 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q72G5pHA009409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Aug 2012 17:05:53 +0100 Message-ID: <1343923553.9756.84.camel@ted> From: Richard Purdie To: Christopher Larson Date: Thu, 02 Aug 2012 17:05:53 +0100 In-Reply-To: <1343773214-29621-1-git-send-email-kergoth@gmail.com> References: <1343773214-29621-1-git-send-email-kergoth@gmail.com> X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Cc: Christopher Larson , bitbake-devel@lists.openembedded.org Subject: Re: [PATCH] fetch2: handle broken symlinks in local mirror handling X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 16:17:46 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2012-07-31 at 15:20 -0700, Christopher Larson wrote: > From: Christopher Larson > > If a file:// mirror is being used, the fetcher will create a symlink to the > local file. However, if the local file gets removed, that link will be dead, > and os.path.exists() returns False in that case, so it tries and fails to > recreate the link. Now we unlink such a dead link if it exists. > > Signed-off-by: Christopher Larson > --- > lib/bb/fetch2/__init__.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Merged to master, thanks. Richard