From ea6938f46739198bf912a4f06366bc1cac97fe4a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 26 Jul 2011 13:34:11 +0100 Subject: [PATCH] adt-virt-schroot: actually implement revert --- virt-subproc/adt-virt-schroot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virt-subproc/adt-virt-schroot b/virt-subproc/adt-virt-schroot index b75f59d..afcd68a 100755 --- 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) -- 2.30.2