mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 16:00:28 +03:00
Only conditionally try to remove completed box
This commit is contained in:
parent
993d63506e
commit
b30b881711
1 changed files with 4 additions and 1 deletions
|
|
@ -201,5 +201,8 @@ vagrant(['package', '--output', os.path.join('..', boxfile)], serverdir)
|
||||||
print "Adding box"
|
print "Adding box"
|
||||||
vagrant(['box', 'add', 'buildserver', boxfile, '-f'])
|
vagrant(['box', 'add', 'buildserver', boxfile, '-f'])
|
||||||
|
|
||||||
|
# Remove box file if it exists (older vagrant versions left it there, newer
|
||||||
|
# ones seem to delete it
|
||||||
|
if os.path.exists(boxfile):
|
||||||
os.remove(boxfile)
|
os.remove(boxfile)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue