chiark / gitweb /
Daniel Martí [Wed, 17 Jun 2015 17:55:30 +0000 (19:55 +0200)]
lint: start warning about invalid categories
Daniel Martí [Tue, 9 Jun 2015 21:11:42 +0000 (23:11 +0200)]
Bump index version to 13: <changelog> added
Daniel Martí [Tue, 9 Jun 2015 21:10:10 +0000 (23:10 +0200)]
update: don't always place the changelog element
It's not that common, so often it'd just be <changelog/>
Daniel Martí [Sun, 7 Jun 2015 12:14:56 +0000 (14:14 +0200)]
lint: take forcevercode into account for UCM warnings
Daniel Martí [Sun, 7 Jun 2015 12:05:29 +0000 (14:05 +0200)]
lint: get rid of -p/--pedantic
Only one check was left, and it's of little use anyway.
Daniel Martí [Sun, 7 Jun 2015 12:03:15 +0000 (14:03 +0200)]
lint: complain about useless Name: fields
Daniel Martí [Sun, 7 Jun 2015 12:02:50 +0000 (14:02 +0200)]
Always make sure that we don't encode None
Apparently, we can have a non-nil element that has a nil text.
Daniel Martí [Fri, 5 Jun 2015 15:15:13 +0000 (17:15 +0200)]
lint: Move the UCM:Tags warning out of pedantic
It's much more reliable now
Daniel Martí [Fri, 5 Jun 2015 15:04:05 +0000 (17:04 +0200)]
lint: Improve UCM:Tags warning
If the vercode is higher than CVC, then we're probably only following stable
versions or something like that
Daniel Martí [Fri, 5 Jun 2015 14:59:01 +0000 (16:59 +0200)]
lint: don't be pedantic about downloading code
We don't really control this if run via a script, which happens more often.
Daniel Martí [Fri, 5 Jun 2015 14:56:25 +0000 (16:56 +0200)]
lint: don't assume trailing slashes in urls are redundant
Daniel Martí [Fri, 5 Jun 2015 14:52:35 +0000 (14:52 +0000)]
Merge branch 'graphviz' into 'master'
Add graphviz to buildserver
Add graphviz to buildserver. Like inkscape and imagemagick it is used to "build" images from "source code".
See merge request !53
Boris Kraut [Fri, 5 Jun 2015 13:41:21 +0000 (15:41 +0200)]
Add graphviz to buildserver
Ciaran Gultnieks [Thu, 4 Jun 2015 14:00:31 +0000 (15:00 +0100)]
Stop fdroid update saying it requires signing keys when it doesn't
Again!
Daniel Martí [Thu, 4 Jun 2015 13:56:20 +0000 (15:56 +0200)]
Properly support escaped strings
See:
https://developer.android.com/guide/topics/resources/string-resource.html
Daniel Martí [Thu, 4 Jun 2015 13:49:00 +0000 (15:49 +0200)]
Remove now unnecessary regex_pedantic
Daniel Martí [Thu, 4 Jun 2015 13:47:25 +0000 (15:47 +0200)]
lint: enforce https on gitlab too
Daniel Martí [Thu, 4 Jun 2015 13:46:54 +0000 (15:46 +0200)]
lint: Remove duplicate code.google.com TODO
Daniel Martí [Thu, 4 Jun 2015 13:45:33 +0000 (15:45 +0200)]
lint: move punctuation warnings out of pedantic
Daniel Martí [Wed, 3 Jun 2015 23:01:52 +0000 (01:01 +0200)]
"Changelog:" will be empty often, so only put it if present
Daniel Martí [Wed, 3 Jun 2015 20:51:05 +0000 (22:51 +0200)]
Move github .git lint warning to http_warnings
Daniel Martí [Wed, 3 Jun 2015 20:17:35 +0000 (22:17 +0200)]
Re-add https enforcings to Repo:
Daniel Martí [Wed, 3 Jun 2015 19:00:15 +0000 (21:00 +0200)]
Enforce https uniformly in all http links
Daniel Martí [Wed, 3 Jun 2015 18:55:08 +0000 (20:55 +0200)]
Simplify lint http warnings
Daniel Martí [Wed, 3 Jun 2015 17:40:43 +0000 (19:40 +0200)]
Don't accept non-integer vercodes
Daniel Martí [Wed, 3 Jun 2015 16:42:24 +0000 (18:42 +0200)]
Work around encoding issues when using xml files
The xml package returns "unicode" objects instead of strings in utf-8.
Daniel Martí [Wed, 3 Jun 2015 16:30:31 +0000 (18:30 +0200)]
Don't crash if an <application> has no android:label
Daniel Martí [Wed, 3 Jun 2015 16:05:17 +0000 (18:05 +0200)]
Fix PEP8 E225
Daniel Martí [Wed, 3 Jun 2015 13:52:46 +0000 (15:52 +0200)]
Don't use the commits feed as a changelog link in import
If it's often not a replacement for a proper changelog, do not advise its
usage.
Daniel Martí [Wed, 3 Jun 2015 13:52:01 +0000 (15:52 +0200)]
Merge branch 'changelog' of https://gitlab.com/krt/fdroidserver
Daniel Martí [Wed, 3 Jun 2015 13:43:55 +0000 (15:43 +0200)]
No need to walk the entire src/main subtree in gradle apps
Daniel Martí [Wed, 3 Jun 2015 13:42:45 +0000 (15:42 +0200)]
Also use proper xml parsing when retrieving string resources - #58
Daniel Martí [Wed, 3 Jun 2015 13:23:18 +0000 (15:23 +0200)]
Also use xml parsing to obtain version from AM.xml - #58
Daniel Martí [Wed, 3 Jun 2015 12:35:50 +0000 (14:35 +0200)]
Use proper AndroidManifest.xml parsing for labels - #58
Daniel Martí [Wed, 3 Jun 2015 12:35:31 +0000 (14:35 +0200)]
Revert back to always updating Auto Name
Daniel Martí [Wed, 3 Jun 2015 11:51:41 +0000 (13:51 +0200)]
Remove "Srclibs:" from srclib metadata files
They are handled per build, this feature is of little help and practically
unused in master.
Ciaran Gultnieks [Tue, 2 Jun 2015 08:16:29 +0000 (09:16 +0100)]
Allow gpg home directory to be overridden
Daniel Martí [Tue, 26 May 2015 13:35:13 +0000 (13:35 +0000)]
Merge branch 'pandoc' into 'master'
Add pandoc to buildserver
Closes #64.
See merge request !52
Boris Kraut [Sat, 23 May 2015 15:48:05 +0000 (17:48 +0200)]
Add pandoc to buildserver
Daniel Martí [Fri, 22 May 2015 07:33:15 +0000 (09:33 +0200)]
lint: be more strict about redundant summaries
Daniel Martí [Fri, 22 May 2015 07:29:51 +0000 (09:29 +0200)]
fix E713 test for membership should be 'not in'
Ciaran Gultnieks [Fri, 15 May 2015 20:55:20 +0000 (21:55 +0100)]
Formatting fix for
f345b24
Ciaran Gultnieks [Fri, 15 May 2015 20:36:12 +0000 (21:36 +0100)]
Fix 'fdroid update' regression
This is from MR !48. It refuses to update because there is no 'keypass'
or 'keystorepass' in the config. These shouldn't be in the config of any
properly set up existing repo in the first place. They certainly aren't
in any of mine (as a result of which, it refused to work on any of
them!)
Daniel Martí [Fri, 15 May 2015 15:09:00 +0000 (17:09 +0200)]
lint: warn about extra empty lines
Daniel Martí [Fri, 15 May 2015 14:54:41 +0000 (16:54 +0200)]
Warn about empty categs
Daniel Martí [Fri, 15 May 2015 14:51:58 +0000 (16:51 +0200)]
Make comma-separated list parsing code common
Ciaran Gultnieks [Thu, 14 May 2015 16:12:04 +0000 (16:12 +0000)]
Merge branch 'support-all-signing-key-types' into 'master'
support all APK signing key types: DSA, EC, RSA
The lovely python getsig replacement was only looking for .RSA files, but the signing key is defined as: "A signature block file with a .DSA, .RSA, or .EC extension"
https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html
For more info:
https://f-droid.org/forums/topic/binary-repo-whatsapp-error
See merge request !51
Ciaran Gultnieks [Thu, 14 May 2015 16:11:32 +0000 (16:11 +0000)]
Merge branch 'debug-builds' into 'master'
support plain paths as a serverwebroot
For use cases where there is a web server running on the same machine where the `fdroid update` is being run, allow plain paths in the serverwebroot list. This is useful for debug repos from build servers, like:
https://dev.guardianproject.info/fdroid
This also includes small change in the `fdroid server update` delete behavior: it delays the delete phase until after the new APKs are uploaded. This is keep things working for a long as possible while the repo is being updated.
See merge request !49
Ciaran Gultnieks [Thu, 14 May 2015 16:09:40 +0000 (16:09 +0000)]
Merge branch 'master' into 'master'
make it really easy to upgrade unsigned repos to signed
As a key step to removing support for unsigned repos from fdroidclient (https://gitlab.com/fdroid/fdroidclient/issues/12), this merge request makes `fdroid update` require a signing key. If there is no keystore, it'll prompt the user to create one using `fdroid update --create-key`.
This closes #13
See merge request !48
Hans-Christoph Steiner [Wed, 13 May 2015 21:50:08 +0000 (17:50 -0400)]
support all APK signing key types: DSA, EC, RSA
"A signature block file with a .DSA, .RSA, or .EC extension"
https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html
Daniel Martí [Thu, 14 May 2015 10:31:10 +0000 (12:31 +0200)]
ACCESS_SUPERUSER is now deprecated
Daniel Martí [Wed, 13 May 2015 11:05:42 +0000 (13:05 +0200)]
Detect most bad URLs
Also [appid] links that should really be [[appid]]
Daniel Martí [Sun, 10 May 2015 13:42:07 +0000 (13:42 +0000)]
Merge branch 'vars' into 'master'
Update documentation to cover COMMIT, VERSION and VERCODE vars
See merge request !50
Boris Kraut [Sun, 10 May 2015 13:29:41 +0000 (15:29 +0200)]
Update documentation to cover COMMIT, VERSION and VERCODE vars
Daniel Martí [Sun, 10 May 2015 11:53:06 +0000 (13:53 +0200)]
Add COMMIT, VERSION and VERCODE recipe vars. Fixes #69
Hans-Christoph Steiner [Tue, 21 Apr 2015 02:27:31 +0000 (22:27 -0400)]
common.write_to_config(): if key doesn't exist in config.py, append it
This lets `fdroid update --create-key` add key/value pairs to config.py
Hans-Christoph Steiner [Tue, 21 Apr 2015 01:52:41 +0000 (21:52 -0400)]
tests: no need to dump the index.xml to the build log
This should make the build log a lot shorter.
Hans-Christoph Steiner [Tue, 21 Apr 2015 01:38:52 +0000 (21:38 -0400)]
`fdroid update --create-key` to create a keystore/key
This provides the final option in this series, allowing the user to just
add --create-key to `fdroid update, and thereby upgrade an unsigned repo to
a proper signed repo. It also might be useful
closes #13 https://gitlab.com/fdroid/fdroidserver/issues/13
Hans-Christoph Steiner [Tue, 21 Apr 2015 00:27:38 +0000 (20:27 -0400)]
move keystore gen logic to common function
This moves the method for generating a new keystore for the repo signing
key to a common function so that it can be used in more subcommands beyond
`fdroid init`. The immediate idea is to make `fdroid update --create-key`
upgrade unsigned repos to signed ones so we can make fdroidclient only use
signed repos.
Hans-Christoph Steiner [Mon, 20 Apr 2015 23:29:50 +0000 (19:29 -0400)]
move default keystore location to `keystore.jks`, i.e. in the fdroid repo
This makes `fdroid init` create a complete, self-contained repo in a single
folder. That makes it easily transferable, backupable, etc. It also means
that `fdroid update` can add a keystore to an existing unsigned repo
without having to worry about finding the right folder or overwriting any
other existing files.
Hans-Christoph Steiner [Mon, 20 Apr 2015 23:14:58 +0000 (19:14 -0400)]
move genkey() and genpassword() to common.py for use in multiple sections
genkey() and genpassword() are now going to be used by `fdroid update` as
well as `fdroid init`, so they should be in common.py
Hans-Christoph Steiner [Mon, 20 Apr 2015 23:09:50 +0000 (19:09 -0400)]
make `fdroid update` check that it can sign the repo, or exit with error
There is no good reason to run unsigned repos any more. It is trivially
easy to create and use a signed repo, and having to support unsigned repos
in the client makes some security-critical parts of the code a lot more
complicated.
refs #13 https://gitlab.com/fdroid/fdroidserver/issues/13
https://gitlab.com/fdroid/fdroidclient/issues/12
Hans-Christoph Steiner [Wed, 11 Mar 2015 21:40:26 +0000 (17:40 -0400)]
jenkins-build: always use speced dir for APK source
Otherwise, the test process can pick up lots and lots of APKs from various
places like a ~/fdroid folder or various ~/workspace/fdroidserver Jenkins
projects.
Hans-Christoph Steiner [Fri, 1 May 2015 03:39:58 +0000 (23:39 -0400)]
server: support plain paths as a serverwebroot
For use cases where there is a web server running on the same machine where
the `fdroid update` is being run, allow plain paths in the serverwebroot
list. This is useful for debug repos from build servers, like:
https://dev.guardianproject.info/fdroid
Hans-Christoph Steiner [Fri, 1 May 2015 03:36:10 +0000 (23:36 -0400)]
server: delay deleting on the server for as long as possible
In order to keep things working as much as possible during the update, the
rsync should only delete the obsolete APKs after it has finished uploading
the new APKs.
Ciaran Gultnieks [Tue, 28 Apr 2015 16:23:42 +0000 (17:23 +0100)]
Use --safe-links with rsync
Daniel Martí [Thu, 7 May 2015 22:58:52 +0000 (00:58 +0200)]
Don't match gradle plugin import lines which are commented
Daniel Martí [Wed, 29 Apr 2015 20:15:57 +0000 (22:15 +0200)]
Add plugin version 1.2 to our gradle wrapper
Daniel Martí [Tue, 28 Apr 2015 15:39:26 +0000 (17:39 +0200)]
Sort debian packages to be installed
Daniel Martí [Tue, 28 Apr 2015 15:36:15 +0000 (17:36 +0200)]
Add scons, make-like tool used by godot
Daniel Martí [Thu, 23 Apr 2015 14:42:22 +0000 (16:42 +0200)]
Order counter stats by value, not key
Daniel Martí [Mon, 20 Apr 2015 16:26:23 +0000 (18:26 +0200)]
stats: Don't confuse app with appid
Daniel Martí [Mon, 20 Apr 2015 16:25:40 +0000 (18:25 +0200)]
stats: sort counter outputs
Daniel Martí [Mon, 20 Apr 2015 16:20:24 +0000 (18:20 +0200)]
Add stats/disabled_apps.txt (closes #87)
Daniel Martí [Sun, 19 Apr 2015 15:04:44 +0000 (17:04 +0200)]
lint: warn about None category
Daniel Martí [Sun, 19 Apr 2015 15:04:34 +0000 (17:04 +0200)]
lint: Remove NOP
Daniel Martí [Fri, 17 Apr 2015 17:28:35 +0000 (17:28 +0000)]
Merge branch 'projectproperties' into 'master'
Fix project.properties dependency issue
Correctly place scrlib references also
in the case there is no project.properties file
present in the original repository.
This commit fixes a problem, which was introduced with
021df3c42420de542bf11f22948831023b47ebf3: If no
project.properties file exists in the original
project's source repo, place_srclib will not place
a dependency --- even if there should be one:
> if not os.path.isfile(proppath):
> return
Example app: fdroiddata/metadata/org.berlin_vegan.bvapp.txt
See merge request !47
Daniel Martí [Fri, 17 Apr 2015 11:02:47 +0000 (13:02 +0200)]
Don't try reading lines from directories
micu [Thu, 16 Apr 2015 22:58:20 +0000 (00:58 +0200)]
Fix project.properties dependency issue
Correctly place scrlib references also
in the case there is no project.properties file
present in the original repository.
This commit fixes a problem, which was introduced with
021df3c42420de542bf11f22948831023b47ebf3: If no
project.properties file exists in the original
project's source repo, place_srclib will not place
a dependency --- even if there should be one:
> if not os.path.isfile(proppath):
> return
Example app: fdroiddata/metadata/org.berlin_vegan.bvapp.txt
Daniel Martí [Tue, 14 Apr 2015 12:18:44 +0000 (14:18 +0200)]
lint: add commented out warnings about google code
Daniel Martí [Thu, 9 Apr 2015 22:14:52 +0000 (00:14 +0200)]
Also run main gradle clean task in case it's got dependencies
Daniel Martí [Thu, 9 Apr 2015 22:13:50 +0000 (00:13 +0200)]
Start supporting gradle tasks that belong to subprojects
Daniel Martí [Thu, 9 Apr 2015 14:02:35 +0000 (16:02 +0200)]
Add gradle 2.3 to the buildserver
Fixes apps that explicitly require 2.3 via gradleVersion
Daniel Martí [Mon, 6 Apr 2015 20:18:54 +0000 (22:18 +0200)]
Add android version 5.1
Daniel Martí [Mon, 6 Apr 2015 15:42:26 +0000 (17:42 +0200)]
When patching or checking plugin versions, use *.gradle
Apparently all *.gradle files are valid, e.g. global.gradle.
Daniel Martí [Thu, 2 Apr 2015 22:14:32 +0000 (00:14 +0200)]
Other minor file reading fixes
Daniel Martí [Thu, 2 Apr 2015 22:05:22 +0000 (00:05 +0200)]
Always check that files actually are files before reading
This fixes crashes with e.g. broken symlinks
Daniel Martí [Tue, 31 Mar 2015 21:08:32 +0000 (23:08 +0200)]
Fix buildTools versions that reference variables
Ciaran Gultnieks [Mon, 23 Mar 2015 11:28:38 +0000 (11:28 +0000)]
Work when cpu count is not defined
Daniel Martí [Tue, 24 Mar 2015 20:36:42 +0000 (21:36 +0100)]
Forgot to bump build_tools in the configs
Daniel Martí [Sun, 22 Mar 2015 17:18:45 +0000 (17:18 +0000)]
Merge branch 'import' into 'master'
Importer: Fix duplicated urls
Importer uses provided URL for the "website" as default. If "sourcecode" is set to the same, this causes a lint error. For Github the website is now empty while Gitlab's sourcecode is no longer the bas project url.
See merge request !46
Boris Kraut [Sun, 22 Mar 2015 02:24:43 +0000 (03:24 +0100)]
Importer: Fix duplicated urls
Daniel Martí [Sat, 21 Mar 2015 22:42:31 +0000 (23:42 +0100)]
Update build tools to 22.0.0
Daniel Martí [Sat, 21 Mar 2015 22:41:08 +0000 (23:41 +0100)]
Update sdk to 24.1.2
Daniel Martí [Sat, 21 Mar 2015 22:28:09 +0000 (23:28 +0100)]
Add android-22 target
Daniel Martí [Sun, 15 Mar 2015 15:25:41 +0000 (16:25 +0100)]
Gradle plugin version 1.1 still uses gradle 2.2
Ciaran Gultnieks [Wed, 11 Mar 2015 13:32:09 +0000 (13:32 +0000)]
Merge branch 'update-readme' into 'master'
Update readme
Updated the main README file to include a list of dependencies.
Forgot to update my e-mail address, so I closed Merge Request !44 first.
See merge request !45
Schneider Werner-Walter [Wed, 11 Mar 2015 08:28:47 +0000 (10:28 +0200)]
Update README file.
Daniel Martí [Thu, 5 Mar 2015 14:32:45 +0000 (15:32 +0100)]
lint: don't take commas as punctuation
Daniel Martí [Thu, 5 Mar 2015 14:25:21 +0000 (15:25 +0100)]
Don't take placeholders commits as possible tags