mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59: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()
|
transaction.rollback()
|
||||||
else:
|
else:
|
||||||
transaction.commit()
|
transaction.commit()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
transaction.rollback()
|
||||||
|
logger.warn("Update interrupted, changes to %s rolled back" % layer.name)
|
||||||
|
break
|
||||||
except:
|
except:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user