chiark
/
gitweb
/
~ianmdlvl
/
autopkgtest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
adt-virt-schroot: actually implement revert
[autopkgtest.git]
/
virt-subproc
/
adt-virt-schroot
diff --git
a/virt-subproc/adt-virt-schroot
b/virt-subproc/adt-virt-schroot
index b75f59d4b127d49f472a0302c643ee43bfe73db1..afcd68a466973de28cfff06d538f258e4d34e9d1 100755
(executable)
--- a/
virt-subproc/adt-virt-schroot
+++ b/
virt-subproc/adt-virt-schroot
@@
-85,6
+85,10
@@
def hook_open():
vsp.down += ['--','sh','-c']
return None
+def hook_revert():
+ hook_cleanup()
+ hook_open()
+
def hook_cleanup():
global schroot, sessid, downtmp
vsp.execute('schroot -e -c',[sessid], downp=False)