chiark / gitweb /
run-tests: fix copying of urzip.apk into new repo
authorHans-Christoph Steiner <hans@eds.org>
Fri, 24 Jul 2015 22:52:13 +0000 (15:52 -0700)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 31 Jul 2015 22:38:40 +0000 (00:38 +0200)
tests/run-tests

index 8971bd04be2de5bca61ebefea7e63ef8e77ecafe..df4d635552b2cf7b257bfac4cba87e74f8fbb489 100755 (executable)
@@ -343,7 +343,8 @@ $fdroid readmeta
 test -e repo/index.xml
 test -e repo/index.jar
 grep -F '<application id=' repo/index.xml > /dev/null
-cp $WORKSPACE/tests/urzip.apk $REPOROOT/
+test -e $REPOROOT/repo/info.guardianproject.urzip_100.apk || \
+    cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
 $fdroid update --create-metadata
 $fdroid readmeta
 test -e repo/index.xml
@@ -369,8 +370,8 @@ KEYSTORE=$REPOROOT/keystore.jks
 cd $REPOROOT
 touch config.py
 touch fdroid-icon.png
-mkdir repo/
-cp $WORKSPACE/tests/urzip.apk $REPOROOT/
+mkdir repo
+cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
 set +e
 $fdroid update --create-metadata
 if [ $? -eq 0 ]; then