mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
buildserver: wipe snapshot from libvirt store on --clean
This commit is contained in:
parent
5667d16498
commit
f6a487eee4
1 changed files with 3 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ if os.path.exists(boxfile):
|
||||||
|
|
||||||
if options.clean:
|
if options.clean:
|
||||||
vagrant(['destroy', '-f'], cwd=serverdir, printout=options.verbose)
|
vagrant(['destroy', '-f'], cwd=serverdir, printout=options.verbose)
|
||||||
|
if config['vm_provider'] == 'libvirt':
|
||||||
|
subprocess.call(['virsh', 'undefine', 'buildserver_default'])
|
||||||
|
subprocess.call(['virsh', 'vol-delete', '/var/lib/libvirt/images/buildserver_default.img'])
|
||||||
|
|
||||||
# Update cached files.
|
# Update cached files.
|
||||||
cachedir = config['cachedir']
|
cachedir = config['cachedir']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue