mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 18:01:06 +03:00
add 'gradleprops' to .pickle files for the metadata tests
This commit is contained in:
parent
8d6e0aebb9
commit
beb217b6ae
5 changed files with 5236 additions and 5005 deletions
15
tests/metadata/update-pickle.py
Executable file
15
tests/metadata/update-pickle.py
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python2
|
||||
#
|
||||
# This script is for updating the .pickle test files when there are changes to
|
||||
# the default metadata, e.g. adding a new key/tag.
|
||||
|
||||
import glob
|
||||
import pickle
|
||||
|
||||
for picklefile in glob.glob('*.pickle'):
|
||||
p = pickle.load(open(picklefile))
|
||||
|
||||
for build in p['builds']:
|
||||
build['gradleprops'] = []
|
||||
|
||||
pickle.dump(p, open(picklefile, 'w'))
|
Loading…
Add table
Add a link
Reference in a new issue