From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1R0cHp-0007Mp-3o for bitbake-devel@lists.openembedded.org; Mon, 05 Sep 2011 18:44:41 +0200 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 05 Sep 2011 09:39:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="45230619" Received: from unknown (HELO [10.255.14.132]) ([10.255.14.132]) by orsmga002.jf.intel.com with ESMTP; 05 Sep 2011 09:39:39 -0700 From: Joshua Lock To: bitbake-devel@lists.openembedded.org Date: Mon, 05 Sep 2011 09:39:34 -0700 In-Reply-To: References: X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15) Message-ID: <1315240779.2198.2.camel@scimitar> Mime-Version: 1.0 Subject: Re: [PATCH 1/2] hob: clear out temporary file list after deleting 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: Mon, 05 Sep 2011 16:44:41 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Mon, 2011-09-05 at 13:30 +0100, Paul Eggleton wrote: > If you don't clear out files_to_clean after the files get deleted and > then you run a second build, it will try to delete the files from the > first build and you will get a "No such file or directory" error. > > Signed-off-by: Paul Eggleton Signed-off-by: Joshua Lock > --- > bitbake/lib/bb/ui/hob.py | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py > index c2acada..f2a9ee5 100644 > --- a/bitbake/lib/bb/ui/hob.py > +++ b/bitbake/lib/bb/ui/hob.py > @@ -496,6 +496,7 @@ class MainWindow (gtk.Window): > self.cancel.set_sensitive(False) > for f in self.files_to_clean: > os.remove(f) > + self.files_to_clean = [] > > lbl = "Build completed\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build." > if self.handler.building == "image" and self.build_succeeded: -- Joshua Lock Yocto Project "Johannes factotum" Intel Open Source Technology Centre