From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 29 Aug 2014 10:41:43 -0400 Subject: [U-Boot] [U-Boot, v3, 5/7] tools/genboardscfg.py: fix minor problems on termination In-Reply-To: <1408937988-19923-6-git-send-email-yamada.m@jp.panasonic.com> References: <1408937988-19923-6-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140829144143.GI19374@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Aug 25, 2014 at 12:39:46PM +0900, Masahiro Yamada wrote: > This tool deletes the incomplete boards.cfg > if it encounters an error or is is terminated by the user. > > I notice some problems even though they rarely happen. > > [1] The boards.cfg is removed if the program is terminated > during __gen_boards_cfg() function but before boards.cfg > is actually touched. In this case, the previous boards.cfg > should be kept as it is. > > [2] If an error occurs while deleting the incomplete boards.cfg, > the program throws another exception. This hides the privious > exception and we will not be able to know the real cause. > > Signed-off-by: Masahiro Yamada > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: