if len(repodirs) > 1:
index.make(apps, sortedids, archapks, repodirs[1], True)
- if config.get('binary_transparency_remote'):
- btlog.make_binary_transparency_log(repodirs, git_remote=config['binary_transparency_remote'])
+ git_remote = config.get('binary_transparency_remote')
+ if git_remote or os.path.isdir(os.path.join('binary_transparency', '.git')):
+ btlog.make_binary_transparency_log(repodirs, git_remote=git_remote)
if config['update_stats']:
# Update known apks info...
REPOROOT=`create_test_dir`
GNUPGHOME=$REPOROOT/gnupghome
KEYSTORE=$WORKSPACE/tests/keystore.jks
+mkdir $REPOROOT/git_remote
+cd $REPOROOT/git_remote
+git init --bare
cd $REPOROOT
$fdroid init --keystore $KEYSTORE --repo-keyalias=sova
cp -a $WORKSPACE/tests/metadata $WORKSPACE/tests/repo $WORKSPACE/tests/stats $REPOROOT/
echo 'keystorepass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
echo 'keypass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="' >> config.py
-echo 'binary_transparency_remote = "git@gitlab.com:fdroid-continuous-integration/binary-transparency.git"' >> config.py
+echo "binary_transparency_remote = '$REPOROOT/git_remote'" >> config.py
echo "accepted_formats = ['json', 'txt', 'yml']" >> config.py
$fdroid update --verbose --pretty
test -e repo/index.xml
grep -F '<application id=' repo/index.xml > /dev/null
cd binary_transparency
[ `git rev-list --count HEAD` == "2" ]
+cd $REPOROOT/git_remote
+[ `git rev-list --count HEAD` == "2" ]
#------------------------------------------------------------------------------#