Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1424)

Unified Diff: lib/webports/source_package.py

Issue 1636153003: Handle keyboard interrupt during build (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/webports/source_package.py
diff --git a/lib/webports/source_package.py b/lib/webports/source_package.py
index efc073cd4294302fdb14e860c5da53420f61c663..08f0809512580b8a8d2a1867df57ba5bce485199 100644
--- a/lib/webports/source_package.py
+++ b/lib/webports/source_package.py
@@ -365,6 +365,10 @@ class SourcePackage(package.Package):
self.CreatePkgFile()
finally:
util.log_level = old_log_level
+ except KeyboardInterrupt:
+ # Treat KeyboardInterrupt as special, and not an actual failure. This
+ # avoid log spew to stdout when they user interupts a quit build.
+ raise
except:
if log_filename:
with open(log_filename) as log_file:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698