chiark / gitweb /
eliminate Boolean metadata type, only 'bool' is needed
authorHans-Christoph Steiner <hans@eds.org>
Thu, 23 Jul 2015 23:33:08 +0000 (16:33 -0700)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 1 Sep 2015 09:39:51 +0000 (11:39 +0200)
commit014df8426f55cf66d6b4982bec23698d45e91584
tree8fb890c788abc671e3be6a4bf890cccaaa5596f9
parentab145de6bc50568b185827acb75931ea2b1a7a02
eliminate Boolean metadata type, only 'bool' is needed

No need for a specific metadata type for 'Requires Root'.  Just use 'bool',
then convert on output.  This keeps the internal representation consistent
since all boolean-ish values will be Python bools.  This in turn makes
parsing metadata in various formats easier.  This also makes setting
booleans more tolerant since all these values are valid:

 Yes yes No no True true False false
fdroidserver/metadata.py
fdroidserver/update.py