chiark / gitweb /
fdroidserver.git
8 years agoRemove densities getter
Daniel Martí [Sat, 24 Oct 2015 14:34:55 +0000 (16:34 +0200)]
Remove densities getter

8 years agoscanner: allow sonatype groups/public repo
Daniel Martí [Thu, 22 Oct 2015 10:23:57 +0000 (12:23 +0200)]
scanner: allow sonatype groups/public repo

See http://central.sonatype.org/pages/ossrh-guide.html

8 years agoscanner: escape urls
Daniel Martí [Thu, 22 Oct 2015 10:22:46 +0000 (12:22 +0200)]
scanner: escape urls

8 years agoFix build-tools patching when it uses variables
Daniel Martí [Wed, 14 Oct 2015 17:34:30 +0000 (19:34 +0200)]
Fix build-tools patching when it uses variables

Like:

buildToolsVersion FOO_VERSION

8 years agotests: Comment values are lists, not strings
Daniel Martí [Thu, 8 Oct 2015 14:39:47 +0000 (16:39 +0200)]
tests: Comment values are lists, not strings

Since there can be multiple lines.

8 years agoFix shasum for gradle 2.7 (see a229afe1)
Ciaran Gultnieks [Thu, 8 Oct 2015 13:16:16 +0000 (14:16 +0100)]
Fix shasum for gradle 2.7 (see a229afe1)

8 years agotests: adapt to new comments dict
Daniel Martí [Thu, 8 Oct 2015 11:20:48 +0000 (13:20 +0200)]
tests: adapt to new comments dict

8 years agotests: close files
Daniel Martí [Thu, 8 Oct 2015 11:20:35 +0000 (13:20 +0200)]
tests: close files

8 years agoscanner: ignore gradle comment lines
Daniel Martí [Thu, 8 Oct 2015 10:16:45 +0000 (12:16 +0200)]
scanner: ignore gradle comment lines

Useful to detect:

maven {
// foo
url "http://foo.bar"
}

8 years agoRemove unwanted files in a more consistent way
Daniel Martí [Thu, 8 Oct 2015 10:08:21 +0000 (12:08 +0200)]
Remove unwanted files in a more consistent way

8 years agoscanner: error on unknown maven repos
Daniel Martí [Wed, 7 Oct 2015 16:14:11 +0000 (18:14 +0200)]
scanner: error on unknown maven repos

This finds maven repos of the format:

maven {
url 'http://foo.bar'
}

And checks if the repository is one that we allow. As usual, scanignore can be
used, or the list modified, if there are exceptions or more repositories to
allow.

8 years agoFix moving of gpg sigs between repo and archive
Ciaran Gultnieks [Tue, 6 Oct 2015 08:32:00 +0000 (08:32 +0000)]
Fix moving of gpg sigs between repo and archive

8 years agobuildserver: Add gradle 2.7
Daniel Martí [Mon, 5 Oct 2015 21:40:19 +0000 (23:40 +0200)]
buildserver: Add gradle 2.7

8 years agoAlways use the same logging format
Daniel Martí [Mon, 5 Oct 2015 19:43:08 +0000 (21:43 +0200)]
Always use the same logging format

This helps differentiate errors, warnings and regular messages.

8 years agoextension simplifications
Daniel Martí [Sun, 4 Oct 2015 16:01:32 +0000 (18:01 +0200)]
extension simplifications

8 years agowrite_metadata fixes
Daniel Martí [Sun, 4 Oct 2015 16:01:23 +0000 (18:01 +0200)]
write_metadata fixes

8 years agoFinal touches to yaml writing
Daniel Martí [Sun, 4 Oct 2015 10:22:18 +0000 (03:22 -0700)]
Final touches to yaml writing

Now it writes and reads properly.

8 years agobash-completion: add appid support for all formats
Daniel Martí [Sun, 4 Oct 2015 10:08:28 +0000 (03:08 -0700)]
bash-completion: add appid support for all formats

8 years agoMore improvements to yaml writing
Daniel Martí [Sun, 4 Oct 2015 07:29:51 +0000 (00:29 -0700)]
More improvements to yaml writing

8 years agoDon't leave an empty line at the end
Daniel Martí [Sun, 4 Oct 2015 07:27:15 +0000 (00:27 -0700)]
Don't leave an empty line at the end

8 years agoAdd basic yaml metadata writing
Daniel Martí [Sun, 4 Oct 2015 07:03:02 +0000 (00:03 -0700)]
Add basic yaml metadata writing

8 years agoRename write_metadata to specify txt
Daniel Martí [Sun, 4 Oct 2015 06:13:18 +0000 (23:13 -0700)]
Rename write_metadata to specify txt

8 years agoSimplify format parsing logic
Daniel Martí [Sun, 4 Oct 2015 06:00:18 +0000 (23:00 -0700)]
Simplify format parsing logic

8 years agoscanner: don't error on partially used globs
Daniel Martí [Sun, 4 Oct 2015 00:00:22 +0000 (17:00 -0700)]
scanner: don't error on partially used globs

This meant that using something like `scanignore=*` would error if there were
ignores happening in some directories/files, but not all.

Fixes #110

8 years agoRework path glob expansion
Daniel Martí [Sat, 3 Oct 2015 23:52:23 +0000 (16:52 -0700)]
Rework path glob expansion

Slightly simplifies the whole thing and lets us map what each resulting path
comes from. This will be useful to fix #110 later on.

8 years agoimport: fix issue tracker links
Daniel Martí [Sat, 3 Oct 2015 23:28:48 +0000 (16:28 -0700)]
import: fix issue tracker links

8 years agoDon't use exists() on symlinks
Daniel Martí [Thu, 1 Oct 2015 00:04:00 +0000 (17:04 -0700)]
Don't use exists() on symlinks

If they are broken, exists() will return false. islink() will return true in
both cases.

8 years agoSmarter archive policy apk moving
Daniel Martí [Wed, 30 Sep 2015 19:33:01 +0000 (12:33 -0700)]
Smarter archive policy apk moving

* Move apks back from the archive repo (e.g. if builds are disabled thus the
  number of apks on the main repo decreases)
* Also move apk signatures back and forth

8 years agocheckupdates: Ignore xml tags in string content
Daniel Martí [Wed, 30 Sep 2015 23:34:02 +0000 (16:34 -0700)]
checkupdates: Ignore xml tags in string content

This allows us to fetch strings like the following:

<string name="app_name">foo <xliff:g>bar</xliff:g></string>

Up until now, using .text would only return "foo ", but if we use .tostring()
with the text method, it converts everything into plain text for us resulting
in "foo bar".

8 years agoFetch string contents in a safer way
Daniel Martí [Wed, 30 Sep 2015 23:12:45 +0000 (16:12 -0700)]
Fetch string contents in a safer way

8 years agoFix for bb2cbd527b
Daniel Martí [Wed, 30 Sep 2015 03:39:36 +0000 (20:39 -0700)]
Fix for bb2cbd527b

8 years agoIncrease wiki error detail length limit
Daniel Martí [Tue, 29 Sep 2015 19:51:11 +0000 (12:51 -0700)]
Increase wiki error detail length limit

8k is too small, e.g. when make -jN errors or when there are a lot of scanner
errors and warnings. 16k should be better. Also, use "[...]" to make it
obvious that the output is truncated.

8 years agofdroid: don't treat MetaDataException as unknown
Daniel Martí [Sat, 26 Sep 2015 23:53:08 +0000 (16:53 -0700)]
fdroid: don't treat MetaDataException as unknown

Up until now, if it was thrown, fdroid would crash with a full stacktrace as
if the program had stopped unexpectedly. Now it just prints the metadata
error, as intended.

8 years agorewritemeta: add -l option to list files
Daniel Martí [Fri, 25 Sep 2015 05:40:49 +0000 (22:40 -0700)]
rewritemeta: add -l option to list files

8 years agoMake write_metadata take a writer
Daniel Martí [Fri, 25 Sep 2015 05:27:38 +0000 (22:27 -0700)]
Make write_metadata take a writer

This will let rewritemeta report format issues without writing to disk.

8 years agoReplace MD5withRSA with SHA1withRSA. Fixes #26.
Daniel Martí [Fri, 25 Sep 2015 01:50:51 +0000 (18:50 -0700)]
Replace MD5withRSA with SHA1withRSA. Fixes #26.

Looks to me like we were using SHA1withRSA all along. Tested that everything
still works with a test repo.

As Hans reports, SHA1withRSA has been the default on Android tools for a long
time and it's supported on all Android versions.

8 years agoPush a more complete/standard fdroidserver layout to buildserver
Ciaran Gultnieks [Thu, 24 Sep 2015 09:19:17 +0000 (09:19 +0000)]
Push a more complete/standard fdroidserver layout to buildserver

8 years agocheckupdates: ignore gradle comments
Daniel Martí [Thu, 24 Sep 2015 01:52:59 +0000 (18:52 -0700)]
checkupdates: ignore gradle comments

8 years agobuild: make sure .gradle/ is removed at clean
Daniel Martí [Wed, 23 Sep 2015 20:02:22 +0000 (13:02 -0700)]
build: make sure .gradle/ is removed at clean

8 years agoUpdate build status badge to new CI url
Daniel Martí [Wed, 23 Sep 2015 04:46:14 +0000 (21:46 -0700)]
Update build status badge to new CI url

8 years agoscanner: skip symlinks to avoid issues
Daniel Martí [Tue, 22 Sep 2015 20:03:42 +0000 (13:03 -0700)]
scanner: skip symlinks to avoid issues

If they resolve to a missing file, we don't care about them. If they resolve
to an existing file, we'll scan that file anyway.

8 years agoscanner: don't crash on unused gradle files
Daniel Martí [Tue, 22 Sep 2015 20:02:26 +0000 (13:02 -0700)]
scanner: don't crash on unused gradle files

8 years agogradle: don't strip out comments
Daniel Martí [Tue, 22 Sep 2015 18:52:16 +0000 (11:52 -0700)]
gradle: don't strip out comments

This was never intended. Comments can help sed usage, and can still be useful
in source tarballs.

8 years agoMerge branch 'asynchronous_reader' into 'master'
Daniel Martí [Mon, 21 Sep 2015 22:09:23 +0000 (22:09 +0000)]
Merge branch 'asynchronous_reader' into 'master'

Add asynchronous filereader, fix python3 lockups

with the current implementation of AsynchronousFileReader with Python 3 FDroidPopen deadlocks with 100% CPU-utilization

The code is from https://github.com/soxofaan/asynchronousfilereader

I hope the MIT-Licence makes no problems

See merge request !80

8 years agoMerge branch 'docs' into 'master'
Daniel Martí [Mon, 21 Sep 2015 19:58:50 +0000 (19:58 +0000)]
Merge branch 'docs' into 'master'

docs: Add list of trusted maven repos

See merge request !81

8 years agodocs: Add list of trusted maven repos
Boris Kraut [Mon, 21 Sep 2015 10:16:47 +0000 (12:16 +0200)]
docs: Add list of trusted maven repos

8 years agoMerge branch 'master' into 'master'
Daniel Martí [Mon, 21 Sep 2015 17:06:38 +0000 (17:06 +0000)]
Merge branch 'master' into 'master'

Added support for gradle flavor specific dependencies in usual suspects check

When you have flavor specific dependencies in your project, you specify them in the build.gradle file with a prefixed *compile* command:

```
compile 'normal dependency'
myflavorCompile 'only for myflavor'
```

The usual suspects check just searches for some often used library names in the whole build.gradle file. I added another condition, so dependencies for not build flavors are not checked.

See merge request !77

8 years agoAdd asynchronous filereader, fix python3 lockups
NeroBurner [Sun, 20 Sep 2015 18:50:02 +0000 (20:50 +0200)]
Add asynchronous filereader, fix python3 lockups

8 years agoAdded support for gradle flavor specific dependencies in usual suspects check.
Jan Kühle [Fri, 18 Sep 2015 15:22:34 +0000 (17:22 +0200)]
Added support for gradle flavor specific dependencies in usual suspects check.

8 years agoRemove Dogecoin donation support
Daniel Martí [Sat, 19 Sep 2015 01:57:44 +0000 (18:57 -0700)]
Remove Dogecoin donation support

Not nearly as popular as bitcoin and litecoin. To the point where it hadn't
been used yet.

Bump index version to 14 to mark its removal.

8 years agometadata: fix html paragraph tag regression
Daniel Martí [Thu, 17 Sep 2015 21:09:21 +0000 (14:09 -0700)]
metadata: fix html paragraph tag regression

Spotted in fdroid/fdroidclient#422

8 years agoscanner: use a blacklist instead of a whitelist
Daniel Martí [Thu, 17 Sep 2015 00:20:22 +0000 (17:20 -0700)]
scanner: use a blacklist instead of a whitelist

This is much closer to what we did before with mimetypes. Using a whitelist
turns out to be a bad idea since repositories seem to be randomly filled with
executable images and documents, which trigger the scanner.

In an ideal world the scanner would complain about all of those. For now, just
warn about the possibility of them being hidden binaries.

8 years agoscanner: also ignore ttf and otf files
Daniel Martí [Thu, 17 Sep 2015 00:14:06 +0000 (17:14 -0700)]
scanner: also ignore ttf and otf files

8 years agoscanner: improve usual suspect output
Daniel Martí [Thu, 17 Sep 2015 00:13:54 +0000 (17:13 -0700)]
scanner: improve usual suspect output

8 years agoMerge branch 'fix_licence_setup' into 'master'
Daniel Martí [Wed, 16 Sep 2015 21:29:41 +0000 (21:29 +0000)]
Merge branch 'fix_licence_setup' into 'master'

Update Licence in setup.py to AGPLv3

See merge request !79

8 years agoUpdate Licence in setup.py to AGPLv3
NeroBurner [Wed, 16 Sep 2015 20:55:22 +0000 (22:55 +0200)]
Update Licence in setup.py to AGPLv3

8 years agoimport: fix import -u from fdroiddata
Daniel Martí [Tue, 15 Sep 2015 21:06:31 +0000 (14:06 -0700)]
import: fix import -u from fdroiddata

Have -u take precedence over .git checking to fix import -u being run from
fdroiddata.

8 years agoDeduplicate statsdir
Daniel Martí [Tue, 15 Sep 2015 01:13:03 +0000 (18:13 -0700)]
Deduplicate statsdir

8 years agoReplace some hard-coded paths with os.path.join
Daniel Martí [Tue, 15 Sep 2015 01:12:15 +0000 (18:12 -0700)]
Replace some hard-coded paths with os.path.join

8 years agoimport: do set root_dir if running from a repo
Daniel Martí [Tue, 15 Sep 2015 00:40:44 +0000 (17:40 -0700)]
import: do set root_dir if running from a repo

8 years agoMerge branch 'dont-use-sudo-brew' into 'master'
Daniel Martí [Mon, 14 Sep 2015 16:40:41 +0000 (16:40 +0000)]
Merge branch 'dont-use-sudo-brew' into 'master'

Don't recommend using sudo with Homebrew

Homebrew [doesn't recommend using `sudo`][1], so update the README to reflect that.

 [1]: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md#why-does-homebrew-say-sudo-is-bad-

See merge request !78

8 years agoscanner: avoid checking if usual files are binary
Daniel Martí [Mon, 14 Sep 2015 05:22:03 +0000 (22:22 -0700)]
scanner: avoid checking if usual files are binary

8 years agoRewrite scanner logic
Daniel Martí [Mon, 14 Sep 2015 05:11:53 +0000 (22:11 -0700)]
Rewrite scanner logic

Initially, the scanner used libmagic which used magic numbers in the file's
content to detect what kind of file it appears to be. Since that library isn't
available on all systems, we added support for two other libraries, mimetypes
amongst them.

The issue with mimetypes is that it only uses the file's extension, not its
actual content. So this ends in variable behaviour depending on what system
you're using fdroidserver on. For example, an executable binary without
extension would be ignored if mimetypes was being used.

We now drop all libraries - mimetypes too as it depends on the system's
mime.types file - and instead check extensions ourselves. On top of that, do
a simple binary content check to find binary executables that don't have an
extension.

The new in-house code without any dependencies doesn't add any new checks, so
no builds should break. The current checks still work:

 % fdroid scanner app.openconnect:1029
[...]
Found executable binary at assets/raw/armeabi/curl
Found executable binary at assets/raw/mips/curl
Found executable binary at assets/raw/x86/curl
Found JAR file at lib/XposedBridgeApi-54.jar
Found JAR file at libs/acra-4.5.0.jar
Found JAR file at libs/openconnect-wrapper.jar
Found JAR file at libs/stoken-wrapper.jar
Found shared library at libs/armeabi/libopenconnect.so
Found shared library at libs/armeabi/libstoken.so
Found shared library at libs/mips/libopenconnect.so
Found shared library at libs/mips/libstoken.so
Found shared library at libs/x86/libopenconnect.so
Found shared library at libs/x86/libstoken.so

8 years agoscanner: support apps using srclib repo type
Daniel Martí [Mon, 14 Sep 2015 05:05:41 +0000 (22:05 -0700)]
scanner: support apps using srclib repo type

8 years agoDon't recommend using sudo with Homebrew
Alex Jordan [Sun, 13 Sep 2015 21:53:34 +0000 (14:53 -0700)]
Don't recommend using sudo with Homebrew

8 years agoall: deduplicate -v/-q setup
Daniel Martí [Sat, 12 Sep 2015 06:42:50 +0000 (23:42 -0700)]
all: deduplicate -v/-q setup

8 years agolint: small cleanup
Daniel Martí [Sat, 12 Sep 2015 06:35:32 +0000 (23:35 -0700)]
lint: small cleanup

8 years agolint: catch more duplicate links
Daniel Martí [Sat, 12 Sep 2015 06:30:59 +0000 (23:30 -0700)]
lint: catch more duplicate links

8 years agocheckupdates: Avoid variable/string names as CV
Daniel Martí [Sat, 12 Sep 2015 06:17:46 +0000 (23:17 -0700)]
checkupdates: Avoid variable/string names as CV

8 years agoAllow slashes in tags
Daniel Martí [Sat, 12 Sep 2015 06:17:14 +0000 (23:17 -0700)]
Allow slashes in tags

The wikipedia app uses them, for example.

8 years agometadata: don't break words nor on hyphens
Daniel Martí [Sat, 12 Sep 2015 05:52:50 +0000 (22:52 -0700)]
metadata: don't break words nor on hyphens

8 years agolint: add dumb support for multiline links
Daniel Martí [Sat, 12 Sep 2015 05:40:16 +0000 (22:40 -0700)]
lint: add dumb support for multiline links

8 years agolint: move regex closer to usage
Daniel Martí [Sat, 12 Sep 2015 05:07:51 +0000 (22:07 -0700)]
lint: move regex closer to usage

8 years agometadata: allow links spanning multiple lines
Daniel Martí [Sat, 12 Sep 2015 05:07:20 +0000 (22:07 -0700)]
metadata: allow links spanning multiple lines

This allows for nicer text wrapping.

8 years agolint: remove now obsolete description checks
Daniel Martí [Sat, 12 Sep 2015 04:53:27 +0000 (21:53 -0700)]
lint: remove now obsolete description checks

8 years agoWrap descriptions to 80 chars
Daniel Martí [Sat, 12 Sep 2015 04:36:18 +0000 (21:36 -0700)]
Wrap descriptions to 80 chars

8 years agometadata: rewrite multiline field writing
Daniel Martí [Sat, 12 Sep 2015 02:12:51 +0000 (19:12 -0700)]
metadata: rewrite multiline field writing

Now description text wrapping can be added.

8 years agoEnsure that builds are always sorted when writing
Daniel Martí [Sat, 12 Sep 2015 01:19:51 +0000 (18:19 -0700)]
Ensure that builds are always sorted when writing

This might not be true if builds are appended by e.g. checkupdates --auto.
This ensures that we sort them again before writing.

8 years agolint: overhaul, cleaner and saner output
Daniel Martí [Fri, 11 Sep 2015 01:41:10 +0000 (18:41 -0700)]
lint: overhaul, cleaner and saner output

8 years agolint: move lastbuild into separate function
Daniel Martí [Fri, 11 Sep 2015 00:55:09 +0000 (17:55 -0700)]
lint: move lastbuild into separate function

8 years agolint: remove "no recommended build" check
Daniel Martí [Fri, 11 Sep 2015 00:54:27 +0000 (17:54 -0700)]
lint: remove "no recommended build" check

In some cases we do want to not recommend any version. The client should more
or less gracefully handle this.

8 years agoMerge branch 'import-tweaks-and-tests' into 'master'
Daniel Martí [Fri, 11 Sep 2015 00:23:42 +0000 (00:23 +0000)]
Merge branch 'import-tweaks-and-tests' into 'master'

Import tweaks and tests

This makes the code for `fdroid import` a bit more flexible and adds tests for the first time.  It also comments out options in `examples/config.py` that just mirror the defaults to make it clear that they are defaults, and help illustrate other options (this is standard procedure in default config files).

More details in the commit messages.

See merge request !76

8 years agolint: cleanup, remove stale sites
Daniel Martí [Thu, 10 Sep 2015 23:34:26 +0000 (16:34 -0700)]
lint: cleanup, remove stale sites

8 years agocomment out things that are default values in examples/config.py
Hans-Christoph Steiner [Thu, 27 Aug 2015 17:34:37 +0000 (19:34 +0200)]
comment out things that are default values in examples/config.py

Since these are already defaults, there is no need to set them as defaults
in the default config.

8 years agoadd a basic test of `fdroid import`
Hans-Christoph Steiner [Wed, 5 Aug 2015 22:55:16 +0000 (00:55 +0200)]
add a basic test of `fdroid import`

8 years agoimport: append .git to gitlab URLs, git sometimes freaks out otherwise
Hans-Christoph Steiner [Wed, 5 Aug 2015 19:54:25 +0000 (21:54 +0200)]
import: append .git to gitlab URLs, git sometimes freaks out otherwise

From my experience, gitlab URLs need to end in .git for git to always be
happy using them.

8 years agoimport: split out URL handling into its own function
Hans-Christoph Steiner [Wed, 5 Aug 2015 18:42:58 +0000 (20:42 +0200)]
import: split out URL handling into its own function

This is preparation to add other import methods, like checking if the
command was run in a currently checked out git repo.

8 years agoMerge branch 'replace_optparse_with_argparse' into 'master'
Daniel Martí [Thu, 10 Sep 2015 02:08:24 +0000 (02:08 +0000)]
Merge branch 'replace_optparse_with_argparse' into 'master'

replace deprecated optparse with argparse

squashed and rebased merge request fdroid/fdroidserver!74

following guidelines from:
https://docs.python.org/2/library/argparse.html#upgrading-optparse-code
except, still using option = parse.parse_args() instead of args = ...

- using the following script in folder fdroidserver:
```
for i in *.py; do
sed -i -e 's/optparse/argparse/' \
-e 's/OptionParser/ArgumentParser/' \
-e 's/OptionError/ArgumentError/' \
-e 's/add_option/add_argument/' \
-e 's/(options, args) = parser/options = parser/' \
-e 's/options, args = parser/options = parser/' \
-e 's/Usage: %prog/%(prog)s/' $i;
done
```
- use ArgumentParser argument to replace (option, args) = parser.parse()
  call
- use parser.error(msg) instead of raise ArgumentException as suggested
  in https://docs.python.org/2/library/argparse.html#exiting-methods
- in fdroid catch ArgumentError instead of OptionError

See merge request !75

8 years agorewritemeta: move debug logs to logging.debug
Daniel Martí [Wed, 9 Sep 2015 20:24:18 +0000 (13:24 -0700)]
rewritemeta: move debug logs to logging.debug

8 years agocheckupdates: log vercode operation activity
Daniel Martí [Wed, 9 Sep 2015 17:26:33 +0000 (10:26 -0700)]
checkupdates: log vercode operation activity

8 years agocheckupdates: don't auto update to older versions
Daniel Martí [Wed, 9 Sep 2015 16:27:18 +0000 (09:27 -0700)]
checkupdates: don't auto update to older versions

If for whatever reason the update check results in an older version that we
didn't package, don't "update" to that version if we already packaged newer
versions.

8 years agoMake builds work after 04e6f2eb and 120be433
Ciaran Gultnieks [Wed, 9 Sep 2015 11:43:17 +0000 (11:43 +0000)]
Make builds work after 04e6f2eb and 120be433

8 years agomanual: Don't reuse scanignore doc in scandelete
Daniel Martí [Tue, 8 Sep 2015 22:36:18 +0000 (15:36 -0700)]
manual: Don't reuse scanignore doc in scandelete

8 years agomanual: be explicit about what scandelete does
Daniel Martí [Tue, 8 Sep 2015 22:22:56 +0000 (15:22 -0700)]
manual: be explicit about what scandelete does

8 years agoMerge branch 'master' of https://gitlab.com/fdroid/fdroidserver
Ciaran Gultnieks [Tue, 8 Sep 2015 21:00:31 +0000 (21:00 +0000)]
Merge branch 'master' of https://gitlab.com/fdroid/fdroidserver

8 years agolint: Warn about links left off from old sites
Daniel Martí [Tue, 8 Sep 2015 20:33:43 +0000 (13:33 -0700)]
lint: Warn about links left off from old sites

8 years agocheckupdates improvements for gradle projects
Daniel Martí [Tue, 8 Sep 2015 20:12:28 +0000 (13:12 -0700)]
checkupdates improvements for gradle projects

* Let the package name override the one found in AndroidManifest.xml
* Support the newer applicationId

8 years agoAdd python-yaml to buildserver
Ciaran Gultnieks [Tue, 8 Sep 2015 09:54:21 +0000 (09:54 +0000)]
Add python-yaml to buildserver

8 years agoreplace deprecated optparse with argparse
nero-tux [Fri, 4 Sep 2015 09:37:05 +0000 (11:37 +0200)]
replace deprecated optparse with argparse

following guidelines from:
https://docs.python.org/2/library/argparse.html#upgrading-optparse-code
except, still using option = parse.parse_args() instead of args = ...

- using the following script in folder fdroidserver:
for i in *.py; do
sed -i -e 's/optparse/argparse/' \
-e 's/OptionParser/ArgumentParser/' \
-e 's/OptionError/ArgumentError/' \
-e 's/add_option/add_argument/' \
-e 's/(options, args) = parser/options = parser/' \
-e 's/options, args = parser/options = parser/' \
-e 's/Usage: %prog/%(prog)s/' $i;
done
- use ArgumentParser argument to replace (option, args) = parser.parse()
  call
- use parser.error(msg) instead of raise ArgumentException as suggested
  in https://docs.python.org/2/library/argparse.html#exiting-methods
- in fdroid catch ArgumentError instead of OptionError

8 years agoBump build-tools
Daniel Martí [Sun, 6 Sep 2015 02:59:35 +0000 (22:59 -0400)]
Bump build-tools