chiark / gitweb /
server: check virustotal has APK before uploading it
authorHans-Christoph Steiner <hans@eds.org>
Tue, 11 Apr 2017 22:23:41 +0000 (00:23 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 12 Apr 2017 13:04:05 +0000 (15:04 +0200)
commitd74d6160dd1784f5f10e7cb534e707fc40111947
tree846d6f73a541259d36021e48fc87f6984626fbdf
parent8dd9d63e8f22915d0e89622acd9ca13ec94f9c5e
server: check virustotal has APK before uploading it

This restructures the virustotal uploading so that first checks whether
virustotal already has the file, and only if not does it upload it.  This
also handles the public API rate limiting, which returns an HTTP 204. This
will now try again until it succeeds, even when rate limited.   Instead of
just getting the list of files from the filesystem, this reads the index-v1
which also already has the SHA256 in there.  virustotal also uses SHA256 as
a unique ID for files.
fdroidserver/server.py