mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
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>
This commit is contained in:
parent
482e7c437f
commit
ce25644664
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user