1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Only conditionally try to remove completed box

This commit is contained in:
Ciaran Gultnieks 2014-01-08 10:56:53 +00:00
parent 993d63506e
commit b30b881711

View File

@ -201,5 +201,8 @@ vagrant(['package', '--output', os.path.join('..', boxfile)], serverdir)
print "Adding box"
vagrant(['box', 'add', 'buildserver', boxfile, '-f'])
os.remove(boxfile)
# 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)