From: Hans-Christoph Steiner Date: Wed, 16 Sep 2015 15:19:12 +0000 (+0200) Subject: run-tests: verbose output for `fdroid update` to aid debugging X-Git-Tag: 0.6.0~28^2~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=25caa09420d6f3be3cc24273538a31c57ea629cf;hp=0be343273db8125be177a65d8d79dd207d6708d4;p=fdroidserver.git run-tests: verbose output for `fdroid update` to aid debugging I'm stumped by this stacktrace, hopefully debug logging will help: Unknown exception found! Traceback (most recent call last): File "./fdroidserver-0.4.0/fdroid", line 141, in main() File "./fdroidserver-0.4.0/fdroid", line 119, in main mod.main() File " line 1146, in main apks, cachechanged = scan_apks(apps, apkcache, repodirs[0], knownapks) File " line 543, in scan_apks thisinfo['sig'] = getsig(os.path.join(os.getcwd(), apkfile)) File " line 361, in getsig with zipfile.ZipFile(apkpath, 'r') as apk: File "/usr/lib/python2.7/zipfile.py", line 770, in __init__ self._RealGetContents() File "/usr/lib/python2.7/zipfile.py", line 857, in _RealGetContents x._decodeExtra() File "/usr/lib/python2.7/zipfile.py", line 388, in _decodeExtra tp, ln = unpack('> config.py echo 'keystorepass = "foo"' >> config.py echo 'keypass = "foo"' >> config.py set +e -$fdroid update --create-metadata +$fdroid update --create-metadata --verbose if [ $? -eq 0 ]; then echo "This should have failed because this repo has a bad/fake keystore!" exit 1 @@ -462,7 +461,7 @@ cd $REPOROOT $fdroid init --keystore $KEYSTORE test -e $KEYSTORE cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/ -$fdroid update --create-metadata +$fdroid update --create-metadata --verbose $fdroid readmeta test -e repo/index.xml test -e repo/index.jar