diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-09-18 22:33:16 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-09-20 07:08:09 +0100 |
commit | ce25644664c904dfc63d3b4fa72dbeff4015c743 (patch) | |
tree | 2b8e7fa71d71842d0ea32c541a9063aaab0ffb64 | |
parent | 482e7c437f6621a76425c538a286a3ee1a562941 (diff) | |
download | openembedded-core-contrib-ce25644664c904dfc63d3b4fa72dbeff4015c743.tar.gz |
update.py: fix Ctrl+C handling during layer update
We do not want to continue on to the next layer on Ctrl+C.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rwxr-xr-x | layerindex/update.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layerindex/update.py b/layerindex/update.py index 89f41f9078..7067044c81 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -518,6 +518,10 @@ def main(): transaction.rollback() else: transaction.commit() + except KeyboardInterrupt: + transaction.rollback() + logger.warn("Update interrupted, changes to %s rolled back" % layer.name) + break except: import traceback traceback.print_exc() |