mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
makebuildserver: purge apt_package_cache feature
This is unmaintained, lightly used, a tangled mess, and can be replaced by things like the vagrant-cachier plugin or #418
This commit is contained in:
parent
52849deea0
commit
21ea1c1c89
4 changed files with 1 additions and 29 deletions
|
@ -77,7 +77,6 @@ BASEBOX_CHECKSUMS = {
|
|||
config = {
|
||||
'basebox': BASEBOX_DEFAULT,
|
||||
'debian_mirror': 'https://deb.debian.org/debian/',
|
||||
'apt_package_cache': False,
|
||||
'copy_caches_from_host': False,
|
||||
'boot_timeout': 600,
|
||||
'cachedir': os.path.join(os.getenv('HOME'), '.cache', 'fdroidserver'),
|
||||
|
@ -121,18 +120,6 @@ if config['vm_provider'] == 'libvirt':
|
|||
tmp = os.path.dirname(tmp)
|
||||
logging.debug('cache dir %s is accessible for libvirt vm.', config['cachedir'])
|
||||
|
||||
if config['apt_package_cache']:
|
||||
config['aptcachedir'] = config['cachedir'] + '/apt/archives'
|
||||
logging.debug('aptcachedir is set to %s', config['aptcachedir'])
|
||||
aptcachelock = os.path.join(config['aptcachedir'], 'lock')
|
||||
if os.path.isfile(aptcachelock):
|
||||
logging.info('apt cache dir is locked, removing lock')
|
||||
os.remove(aptcachelock)
|
||||
aptcachepartial = os.path.join(config['aptcachedir'], 'partial')
|
||||
if os.path.isdir(aptcachepartial):
|
||||
logging.info('removing partial downloads from apt cache dir')
|
||||
shutil.rmtree(aptcachepartial)
|
||||
|
||||
CACHE_FILES = [
|
||||
('https://services.gradle.org/distributions/gradle-6.8.3-bin.zip',
|
||||
'7faa7198769f872826c8ef4f1450f839ec27f0b4d5d1e51bade63667cbccd205'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue