Commit graph

320 commits

Author SHA1 Message Date
Daniel Martí
67cbd1fba4 Fix the script defaults 2014-06-01 19:11:49 +02:00
Daniel Martí
9f1c075119 No need to check for non-default build items 2014-06-01 19:05:18 +02:00
Daniel Martí
67630b6c72 Store build comments by vercode, not version
vercodes are unique, versions aren't
2014-06-01 15:40:33 +02:00
Daniel Martí
a544907bef Don't allow for duplicate build entries 2014-06-01 15:38:11 +02:00
Daniel Martí
3d72c30fe5 Use ordered dicts for defaults in apps and builds 2014-05-31 23:54:50 +02:00
Daniel Martí
b594558811 Re-order app_defaults to match the writing order
Also fix a couple of issues:

* Update Check Name was never written to disk
* Maintainer Notes had no default and was used differently
2014-05-30 19:51:10 +02:00
Daniel Martí
e93017569f Simplify field/flag checking and bool flag usage 2014-05-30 18:52:30 +02:00
Daniel Martí
0f0ccdb1e1 Fix some more pep8 warnings 2014-05-28 09:33:14 +02:00
Ciaran Gultnieks
3a73654d49 Centralise management of srclib metadata 2014-05-20 22:44:47 +01:00
Ciaran Gultnieks
e29da6b023 Restore friendly error messages
Use --verbose if you really want a full traceback with your 'you made a
typo in an package ID' messages.

It would be better to do this based on exception types (i.e. our own
exceptions - MetadataException, BuildException, VCSException) would not
print a traceback, but unexpected exceptions would. But the types are
not available at the 'fdroid' level currently.
2014-05-20 22:14:19 +01:00
Ciaran Gultnieks
6391f204e1 Lose the other unused read_metadata parameter 2014-05-20 21:07:54 +01:00
Ciaran Gultnieks
720ec22e9a Remove mysterious keyword arguments 2014-05-20 17:55:48 +01:00
Ciaran Gultnieks
277d95f57d Fix several read_metadata-related issues
Various calls with the wrong parameters, and also an unused parameter on
the function itself.
2014-05-20 17:48:45 +01:00
Ciaran Gultnieks
0113f85448 Add ability to ignore updates based on version name matching 2014-05-13 20:04:22 +01:00
Hans-Christoph Steiner
37d6d87ff7 fix PEP8 "E226 missing whitespace around arithmetic operator" 2014-05-06 14:36:33 -04:00
Hans-Christoph Steiner
0e00b36db5 fix PEP8 E124/E125/126/127/128 indentation issues
* E124 closing bracket does not match visual indentation
* E125 continuation line does not distinguish itself from next logical line
* E126 continuation line over-indented for hanging indent
* E127 continuation line over-indented for visual indent
* E128 continuation line under-indented for visual indent
2014-05-06 14:36:33 -04:00
Hans-Christoph Steiner
6abb390547 fix PEP8 "E261 at least two spaces before inline comment" 2014-05-06 11:45:04 -04:00
Hans-Christoph Steiner
aa5f317c26 fix PEP8 "W391 blank line at end of file" 2014-05-06 11:45:03 -04:00
Hans-Christoph Steiner
16dc3b27d6 fix PEP8 "E303 too many blank lines (2)" 2014-05-06 11:45:03 -04:00
Hans-Christoph Steiner
69989d4758 fix PEP8 "E302 expected 1 blank lines, found 0" 2014-05-06 11:45:03 -04:00
Hans-Christoph Steiner
3f4f7a544b fix PEP8 "E302 expected 2 blank lines, found 1" 2014-05-06 11:45:03 -04:00
Hans-Christoph Steiner
2f2618e06c fix PEP8 "E401 multiple imports on one line" 2014-05-06 11:45:03 -04:00
Hans-Christoph Steiner
62204d1fe5 fix PEP8 "E202 whitespace before ']' or '}'" 2014-05-06 11:45:02 -04:00
Hans-Christoph Steiner
4af2e0004f fix PEP8 "E201 whitespace after '(' or '[' or '{'" 2014-05-06 11:45:02 -04:00
Hans-Christoph Steiner
998011d535 fix PEP8 "E231 missing whitespace after ','" 2014-05-06 11:45:02 -04:00
Hans-Christoph Steiner
f1812d5935 fix PEP8 "E203 whitespace before ':' or ','" 2014-05-06 11:45:02 -04:00
Daniel Martí
f4ee767013 Fix Categories: default value 2014-04-10 17:27:53 +02:00
Daniel Martí
65d796c93a Only make lists if a space follows the # or * sign
This prevents making a list item out of lines such as:

*.rom images and allows using...
2014-03-27 17:51:34 +01:00
Daniel Martí
0b50566f0f Add "Update Check Name" for Tags/RM apps that programmatically change their appid 2014-03-18 23:37:15 +01:00
Daniel Martí
2ff3308f84 Fix writing of categories 2014-02-19 18:09:54 +01:00
Daniel Martí
3483bad392 Make app['Categories'] a list, get unique categories via a set 2014-02-19 10:27:38 +01:00
Daniel Martí
0ecd5172b1 Make the 'update' flag a list too 2014-02-17 13:09:44 +01:00
Daniel Martí
ea4190e241 Also strip comma-separated build flags 2014-02-15 11:00:19 +01:00
Daniel Martí
67acf4c3fc buildjni is a list field too, some server fixes 2014-02-15 10:56:35 +01:00
Daniel Martí
7f2c0e27ca Unify Build and Buildv2 parsing into one
Fixes:

* Buildv2 errors
* Buildv2 now checks with ordered_flags like Build
* Build now has more descriptive exceptions like Buildv2
2014-02-14 18:33:00 +01:00
Daniel Martí
24c9232398 Have all multi-value build flags work similarly
Semicolons are still supported, but commas are now the better standard.
2014-02-12 11:15:19 +01:00
Daniel Martí
5125b52e39 Remove fixapos and fixtrans
These are legacy fixes for very old versions of the Android SDK tools. These
issues have been fixed in stable versions for years.
2014-02-12 10:23:02 +01:00
Daniel Martí
7309b3c198 Show <filename>:<line> when complaining about metadata errors 2014-02-11 20:48:14 +01:00
Daniel Martí
255d4a03ef 'Category' isn't accepted, so don't do backwards support of it 2014-02-11 17:08:58 +01:00
Daniel Martí
08607a3cd4 Support UCM:Tags <pattern> using git tag -l <pattern> 2014-02-10 11:29:12 +01:00
Daniel Martí
d661b7a877 Fix UCD writing 2014-02-05 16:10:03 +01:00
Daniel Martí
18deea2ac8 Error when extra spacings are found 2014-02-05 09:47:55 +01:00
Daniel Martí
f36e7bff29 Also check for the validity of build flags 2014-02-05 09:39:09 +01:00
Daniel Martí
56a80483e9 Make f-droid barf on unrecognised field names 2014-02-05 09:29:26 +01:00
Daniel Martí
9a4fe8c7cd Merge branch 'master' into logging 2014-02-02 19:45:17 +01:00
Daniel Martí
96c5afa03f New command: readmeta, like lint but without warnings 2014-02-02 15:11:26 +01:00
Daniel Martí
f2ca1327f4 Fix a couple copyright notices 2014-02-02 15:11:16 +01:00
Daniel Martí
72fa1891bf Merge branch 'master' into logging
Conflicts:
	fdroidserver/build.py
2014-01-29 13:57:57 +01:00
Daniel Martí
13bcd38372 New build flag: output= for e.g. full make builds 2014-01-28 22:15:20 +01:00
Daniel Martí
2f93ba9bd6 Merge branch 'master' into logging
Conflicts:
	fdroidserver/common.py
2014-01-28 14:14:59 +01:00