# in a secure environment using trusted media (see the manual) but
# you can use this default if you like...
baseboxurl = "https://f-droid.org/jessie32.box"
+# or if you have a cached local copy, you can use that first:
+# baseboxurl = ["file:///home/fdroid/fdroidserver/cache/jessie32.box", "https://f-droid.org/jessie32.box"]
# The amount of RAM the build server will have
memory = 3584
wanted.append(f)
+# allow specifying a list/tuple that includes cached local copy
+if type(config['baseboxurl']) in (list, tuple) or config['baseboxurl'][0] in ('(', '['):
+ baseboxurl = config['baseboxurl']
+else:
+ baseboxurl = '"{0}"'.format(config['baseboxurl'])
# Generate an appropriate Vagrantfile for the buildserver, based on our
# settings...
end
config.vm.box = "{0}"
- config.vm.box_url = "{1}"
+ config.vm.box_url = {1}
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "{2}"]
config.vm.provision :shell, :path => "fixpaths.sh"
""".format(config['basebox'],
- config['baseboxurl'],
+ baseboxurl,
config['memory'],
config.get('cpus', 1))
if 'aptproxy' in config and config['aptproxy']: