From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Sgdw6-0008ID-EH for openembedded-core@lists.openembedded.org; Mon, 18 Jun 2012 17:32:14 +0200 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 18 Jun 2012 08:21:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="181622887" Received: from unknown (HELO envy.home) ([10.255.12.119]) by fmsmga002.fm.intel.com with ESMTP; 18 Jun 2012 08:21:28 -0700 Message-ID: <4FDF472B.601@linux.intel.com> Date: Mon, 18 Jun 2012 08:20:11 -0700 From: Darren Hart User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <88fd8e08d1933a78856c17245210d2ef7e4ae926.1339796664.git.dvhart@linux.intel.com> In-Reply-To: <88fd8e08d1933a78856c17245210d2ef7e4ae926.1339796664.git.dvhart@linux.intel.com> X-Enigmail-Version: 1.4.2 Subject: Re: [PATCH] cml1.bbclass: Only delay exit if the command fails X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2012 15:32:14 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I know, never send patches on Friday afternoon. So just pretend I just now sent this. Early. Monday morning. ;-) On 06/15/2012 02:44 PM, Darren Hart wrote: > Rather than pause for 5 seconds, test the return code of the command and > require user input before exiting on failure. This avoids pausing after > successful command execution as well as possibly not waiting long enough > if the user happens to be doing something else for 5 seconds. > > Signed-off-by: Darren Hart > --- > meta/classes/cml1.bbclass | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass > index bd25311..52d520a 100644 > --- a/meta/classes/cml1.bbclass > +++ b/meta/classes/cml1.bbclass > @@ -15,7 +15,7 @@ HOSTLDFLAGS = "${BUILD_LDFLAGS}" > HOST_LOADLIBES = "-lncurses" > > python do_menuconfig() { > - oe_terminal("${SHELL} -c \"make menuconfig; echo 'Pausing for 5 seconds'; sleep 5\"", '${PN} Configuration', d) > + oe_terminal("${SHELL} -c \"make menuconfig; if [ $? -ne 0 ]; then echo 'Command failed.'; echo -n 'Press any key to continue... '; read r; fi\"", '${PN} Configuration', d) > } > do_menuconfig[depends] += "ncurses-native:do_populate_sysroot" > do_menuconfig[nostamp] = "1" > -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel