* [PATCH 0/1] fix incorrect exit code
@ 2012-02-22 21:24 Paul Eggleton
2012-02-22 21:24 ` [PATCH 1/1] bitbake/ui/knotty: " Paul Eggleton
2012-02-22 21:30 ` [PATCH 0/1] " Richard Purdie
0 siblings, 2 replies; 3+ messages in thread
From: Paul Eggleton @ 2012-02-22 21:24 UTC (permalink / raw)
To: bitbake-devel
Fixes a moderately serious regression caused by my recently merged
Ctrl+C patch.
The patch (against poky, but applies cleanly against bitbake master with
-p2) is available in the git repository at:
git://git.yoctoproject.org/poky-contrib paule/bitbake-shutdown-fix
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bitbake-shutdown-fix
Paul Eggleton (1):
bitbake/ui/knotty: fix incorrect exit code
bitbake/lib/bb/ui/knotty.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] bitbake/ui/knotty: fix incorrect exit code
2012-02-22 21:24 [PATCH 0/1] fix incorrect exit code Paul Eggleton
@ 2012-02-22 21:24 ` Paul Eggleton
2012-02-22 21:30 ` [PATCH 0/1] " Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2012-02-22 21:24 UTC (permalink / raw)
To: bitbake-devel
The recent Ctrl+C patch was not fully tested; the variable it was
relying upon is set to non-zero under other circumstances and thus
bitbake was reporting that it was interrupted and returning a non-zero
exit code when it was not. Track this status in a separate variable
in order to fix the issue.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
bitbake/lib/bb/ui/knotty.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 9881d82..158a132 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -110,6 +110,7 @@ def main(server, eventHandler):
parseprogress = None
cacheprogress = None
shutdown = 0
+ interrupted = False
return_value = 0
errors = 0
warnings = 0
@@ -276,6 +277,7 @@ def main(server, eventHandler):
print("\nSecond Keyboard Interrupt, stopping...\n")
server.runCommand(["stateStop"])
if shutdown == 0:
+ interrupted = True
print("\nKeyboard Interrupt, closing down...\n")
server.runCommand(["stateShutdown"])
shutdown = shutdown + 1
@@ -296,7 +298,7 @@ def main(server, eventHandler):
if summary:
print(summary)
- if shutdown:
+ if interrupted:
print("Execution was interrupted, returning a non-zero exit code.")
if return_value == 0:
return_value = 1
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] fix incorrect exit code
2012-02-22 21:24 [PATCH 0/1] fix incorrect exit code Paul Eggleton
2012-02-22 21:24 ` [PATCH 1/1] bitbake/ui/knotty: " Paul Eggleton
@ 2012-02-22 21:30 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-02-22 21:30 UTC (permalink / raw)
To: Paul Eggleton; +Cc: bitbake-devel
On Wed, 2012-02-22 at 21:24 +0000, Paul Eggleton wrote:
> Fixes a moderately serious regression caused by my recently merged
> Ctrl+C patch.
>
> The patch (against poky, but applies cleanly against bitbake master with
> -p2) is available in the git repository at:
> git://git.yoctoproject.org/poky-contrib paule/bitbake-shutdown-fix
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bitbake-shutdown-fix
>
> Paul Eggleton (1):
> bitbake/ui/knotty: fix incorrect exit code
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-22 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22 21:24 [PATCH 0/1] fix incorrect exit code Paul Eggleton
2012-02-22 21:24 ` [PATCH 1/1] bitbake/ui/knotty: " Paul Eggleton
2012-02-22 21:30 ` [PATCH 0/1] " Richard Purdie
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.