From 25caa09420d6f3be3cc24273538a31c57ea629cf Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 16 Sep 2015 17:19:12 +0200 Subject: [PATCH 1/1] 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 -- 2.30.2