Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id EEC1273243 for ; Tue, 22 Sep 2015 12:31:30 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 22 Sep 2015 05:31:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,573,1437462000"; d="scan'208";a="566206264" Received: from therrane-mobl1.ger.corp.intel.com (HELO peggleto-mobl.ger.corp.intel.com) ([10.252.19.23]) by FMSMGA003.fm.intel.com with ESMTP; 22 Sep 2015 05:31:22 -0700 From: Paul Eggleton To: Markus Lehtonen Date: Tue, 22 Sep 2015 13:31:20 +0100 Message-ID: <2551774.dA4OSry1mC@peggleto-mobl.ger.corp.intel.com> Organization: Intel Corporation User-Agent: KMail/4.14.9 (Linux/4.1.6-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1442921044-20967-1-git-send-email-markus.lehtonen@linux.intel.com> References: <1442921044-20967-1-git-send-email-markus.lehtonen@linux.intel.com> MIME-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH] devtool: upgrade: use shutil.move instead of os.rename X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 12:31:32 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday 22 September 2015 14:24:04 Markus Lehtonen wrote: > Rename fails over filesystem boundaries. > > Signed-off-by: Markus Lehtonen > --- > scripts/lib/devtool/upgrade.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py > index e74e795..18e010c 100644 > --- a/scripts/lib/devtool/upgrade.py > +++ b/scripts/lib/devtool/upgrade.py > @@ -53,7 +53,7 @@ def _copy_source_code(orig, dest): > dest_dir = os.path.join(dest, os.path.dirname(path)) > bb.utils.mkdirhier(dest_dir) > dest_path = os.path.join(dest, path) > - os.rename(os.path.join(orig, path), dest_path) > + shutil.move(os.path.join(orig, path), dest_path) > > def _get_checksums(rf): > import re Ah yes, good catch. Acked-by: Paul Eggleton Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre