chiark / gitweb /
check whether metadata file is a duplicate before parsing it
authorHans-Christoph Steiner <hans@eds.org>
Wed, 23 Mar 2016 20:04:20 +0000 (21:04 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 21 Jun 2016 08:29:56 +0000 (10:29 +0200)
commit400acdefabceab83d0eed96c4cf7d905a014751e
tree6dcb3c45748086530847613c5585a590d0354e13
parent226237c5f75e6ad9796295f04c7af45be90855cc
check whether metadata file is a duplicate before parsing it

By checking first, this prevents a stacktrace when the duplicate metadata
file is not valid.  For example, in the tests, the duplicate is just a zero
length file, which was causing a stacktrace.
fdroidserver/metadata.py