mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
publish: remove last use of stats/ dir
This file can be treated like the other index files in repo/. This also has the advantage that it will automatically get synced by @CiaranG's existing sync scripts.
This commit is contained in:
parent
38378ddfb7
commit
4b9100ae80
7 changed files with 50 additions and 18 deletions
|
@ -375,10 +375,10 @@ class IndexTest(unittest.TestCase):
|
|||
"signer": "b33a601a9da97c82e6eb121eb6b90adab561f396602ec4dc8b0019fb587e2af6"
|
||||
}
|
||||
}
|
||||
os.makedirs('stats')
|
||||
jarfile = 'stats/publishsigkeys.jar'
|
||||
os.mkdir('repo')
|
||||
jarfile = 'repo/signer-index.jar'
|
||||
with zipfile.ZipFile(jarfile, 'w', zipfile.ZIP_DEFLATED) as jar:
|
||||
jar.writestr('publishsigkeys.json', json.dumps(sigkeyfps))
|
||||
jar.writestr('signer-index.json', json.dumps(sigkeyfps))
|
||||
publish.sign_sig_key_fingerprint_list(jarfile)
|
||||
common.write_config_file('')
|
||||
|
||||
|
@ -387,7 +387,7 @@ class IndexTest(unittest.TestCase):
|
|||
self.assertEqual(json.dumps(i, indent=2), json.dumps(o, indent=2))
|
||||
|
||||
# and test it still works with get_first_signer_certificate
|
||||
outdir = os.path.join(self.testdir, 'publishsigkeys')
|
||||
outdir = os.path.join(self.testdir, 'index-signer-fingerprints')
|
||||
os.mkdir(outdir)
|
||||
common.apk_extract_signatures(jarfile, outdir)
|
||||
certs = glob.glob(os.path.join(outdir, '*.RSA'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue