* [Image_Creator_Patch 0/1] Not display false error msg
@ 2011-06-07 7:12 Lianhao Lu
2011-06-07 7:12 ` [Image_Creator_Patch 1/1] bitbake/hob: Not display false error msg at hob exit Lianhao Lu
0 siblings, 1 reply; 3+ messages in thread
From: Lianhao Lu @ 2011-06-07 7:12 UTC (permalink / raw)
To: poky
This patch prevents displaying the false error msg "Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information." when hob ui exits.
NOTE: This patch should be applied to the branch of "poky-contrib/josh/hob".
The following changes since commit 8f7947c089c86deee84f284b352dbdac4bfd6bf2:
Joshua Lock (1):
bitbake/hob: show the busy cursor when performing lengthy operations
are available in the git repository at:
git://git.pokylinux.org/poky-contrib llu/hob_errmsg
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=llu/hob_errmsg
Lianhao Lu (1):
bitbake/hob: Not display false error msg at hob exit.
bitbake/lib/bb/cooker.py | 4 +++-
bitbake/lib/bb/ui/__init__.py | 2 ++
bitbake/lib/bb/ui/hob.py | 3 +++
3 files changed, 8 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Image_Creator_Patch 1/1] bitbake/hob: Not display false error msg at hob exit.
2011-06-07 7:12 [Image_Creator_Patch 0/1] Not display false error msg Lianhao Lu
@ 2011-06-07 7:12 ` Lianhao Lu
2011-06-07 13:37 ` Chris Larson
0 siblings, 1 reply; 3+ messages in thread
From: Lianhao Lu @ 2011-06-07 7:12 UTC (permalink / raw)
To: poky
Not display the false error msg "Nothing to do ..." when hob ui exits by
adding a flag of bb.ui.allowNoneAction.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
---
bitbake/lib/bb/cooker.py | 4 +++-
bitbake/lib/bb/ui/__init__.py | 2 ++
bitbake/lib/bb/ui/hob.py | 3 +++
3 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index ac2faa2..584a86d 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -35,6 +35,7 @@ from cStringIO import StringIO
from contextlib import closing
import bb
from bb import utils, data, parse, event, cache, providers, taskdata, command, runqueue
+import bb.ui
logger = logging.getLogger("BitBake")
collectlog = logging.getLogger("BitBake.Collection")
@@ -153,7 +154,8 @@ class BBCooker:
self.commandlineAction = ["buildTargets", self.configuration.pkgs_to_build, self.configuration.cmd]
else:
self.commandlineAction = None
- buildlog.error("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
+ if not bb.ui.allowNoneAction:
+ buildlog.error("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
def runCommands(self, server, data, abort):
"""
diff --git a/bitbake/lib/bb/ui/__init__.py b/bitbake/lib/bb/ui/__init__.py
index a4805ed..518abfc 100644
--- a/bitbake/lib/bb/ui/__init__.py
+++ b/bitbake/lib/bb/ui/__init__.py
@@ -15,3 +15,5 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+allowNoneAction = False
\ No newline at end of file
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index bef3ba2..391bf52 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -31,6 +31,9 @@ from bb.ui.crumbs.hig import CrumbsDialog
import xmlrpclib
import logging
import Queue
+import bb.ui
+
+bb.ui.allowNoneAction = True
class MainWindow (gtk.Window):
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Image_Creator_Patch 1/1] bitbake/hob: Not display false error msg at hob exit.
2011-06-07 7:12 ` [Image_Creator_Patch 1/1] bitbake/hob: Not display false error msg at hob exit Lianhao Lu
@ 2011-06-07 13:37 ` Chris Larson
0 siblings, 0 replies; 3+ messages in thread
From: Chris Larson @ 2011-06-07 13:37 UTC (permalink / raw)
To: Lianhao Lu; +Cc: poky
On Tue, Jun 7, 2011 at 12:12 AM, Lianhao Lu <lianhao.lu@intel.com> wrote:
> Not display the false error msg "Nothing to do ..." when hob ui exits by
> adding a flag of bb.ui.allowNoneAction.
>
> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Maybe we should move the handling of this message into the UIs, rather
than it being in the cooker, either as additional logic (I do think we
need to find a better way of handling the command line action) or as
an event, then it would be up to the UI if it should display such a
message.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-07 13:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 7:12 [Image_Creator_Patch 0/1] Not display false error msg Lianhao Lu
2011-06-07 7:12 ` [Image_Creator_Patch 1/1] bitbake/hob: Not display false error msg at hob exit Lianhao Lu
2011-06-07 13:37 ` Chris Larson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.