1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

makebuildserver: use jessie32.box from cache, if present

This commit is contained in:
Hans-Christoph Steiner 2016-01-22 13:33:14 +01:00
parent 1ff4f63de3
commit 82e26cf59e

View File

@ -46,11 +46,16 @@ parser.add_option("--debian-mirror", default="http://http.debian.net/debian/",
options, args = parser.parse_args()
# set up default config
cachedir = os.path.join(os.getenv('HOME'), '.cache', 'fdroidserver')
config = {
'arch64': False,
'basebox': 'jessie32',
'baseboxurl': 'https://f-droid.org/jessie32.box',
'cachedir': os.path.join(os.getenv('HOME'), '.cache', 'fdroidserver'),
# TODO in py3, convert this to pathlib.Path(absolute_path_string).as_uri()
'baseboxurl': [
'file://' + os.path.join(cachedir, 'jessie32.box'),
'https://f-droid.org/jessie32.box',
],
'cachedir': cachedir,
'cpus': 1,
'memory': 3584,
}