aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-18 22:33:16 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-20 07:08:09 +0100
commitce25644664c904dfc63d3b4fa72dbeff4015c743 (patch)
tree2b8e7fa71d71842d0ea32c541a9063aaab0ffb64 /layerindex/update.py
parent482e7c437f6621a76425c538a286a3ee1a562941 (diff)
downloadopenembedded-core-contrib-ce25644664c904dfc63d3b4fa72dbeff4015c743.tar.gz
openembedded-core-contrib-ce25644664c904dfc63d3b4fa72dbeff4015c743.tar.bz2
openembedded-core-contrib-ce25644664c904dfc63d3b4fa72dbeff4015c743.zip
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>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py4
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()