1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-16 11:50:10 +01:00
fdroidserver/tests/metadata/dump
Hans-Christoph Steiner bf25b4ca03 eliminate app.builds everywhere, it should be app['Builds']
The .txt format was the last place where the lowercase "builds" was used,
this converts references everywhere to be "Builds".  This makes it possible
to load metadata YAML files with any YAML parser, then have it possible to
use fdroidserver methods on that data, like metadata.write_metadata().

The test files in tests/metadata/dump/*.yaml were manually edited by cutting
the builds: block and putting it the sort order for Builds: so the contents
should be unchanged.

```
sed -i \
 -e 's/app\.builds/app.get('Builds', \[\])/g' \
 -e "s/app\.get(Builds, \[\]) =/app\['Builds'] =/g" \
 -e "s/app\.get(Builds, \[\]) =/app\['Builds'] =/g" \
 -e "s/app\.get(Builds, \[\])/app.get('Builds', \[\])/g" \
 -e "s/app\.get('Builds', \[\])\.append/app\['Builds'\].append/g" \
 -e "s/app\['builds'\]/app.get('Builds', [])/g" \
 */*.*
```
2020-12-15 08:55:05 +01:00
..
com.politedroid.yaml eliminate app.builds everywhere, it should be app['Builds'] 2020-12-15 08:55:05 +01:00
org.adaway.yaml eliminate app.builds everywhere, it should be app['Builds'] 2020-12-15 08:55:05 +01:00
org.smssecure.smssecure.yaml eliminate app.builds everywhere, it should be app['Builds'] 2020-12-15 08:55:05 +01:00
org.videolan.vlc.yaml eliminate app.builds everywhere, it should be app['Builds'] 2020-12-15 08:55:05 +01:00