chiark / gitweb /
fdroidserver.git
10 years agoMore list comprehension fixes
Daniel Martí [Sat, 13 Sep 2014 11:07:21 +0000 (13:07 +0200)]
More list comprehension fixes

10 years agoCentralise handling of default gradle flavours
Daniel Martí [Sat, 13 Sep 2014 11:04:24 +0000 (13:04 +0200)]
Centralise handling of default gradle flavours

10 years agoMake gradle and antcommands (previously antcommand) proper lists
Daniel Martí [Sat, 13 Sep 2014 11:01:08 +0000 (13:01 +0200)]
Make gradle and antcommands (previously antcommand) proper lists

10 years agodocs: Properly explain gradle= with multiple flavors
Daniel Martí [Sat, 13 Sep 2014 10:27:10 +0000 (12:27 +0200)]
docs: Properly explain gradle= with multiple flavors

10 years agoCloses #34: Catch OSErrors when running Popen
Daniel Martí [Thu, 11 Sep 2014 21:08:51 +0000 (23:08 +0200)]
Closes #34: Catch OSErrors when running Popen

10 years agoFix urlencoding of category in next page links, etc
Ciaran Gultnieks [Thu, 4 Sep 2014 13:31:37 +0000 (14:31 +0100)]
Fix urlencoding of category in next page links, etc

10 years agoMake stats retrieval more configurable
Ciaran Gultnieks [Tue, 2 Sep 2014 17:53:22 +0000 (18:53 +0100)]
Make stats retrieval more configurable

10 years agoDiscard descriptions longer than one line when checking duplicates
Daniel Martí [Mon, 1 Sep 2014 08:34:12 +0000 (10:34 +0200)]
Discard descriptions longer than one line when checking duplicates

10 years agoSort builds by vercode when reading them
Daniel Martí [Sat, 30 Aug 2014 22:21:29 +0000 (00:21 +0200)]
Sort builds by vercode when reading them

Then, when written, the order will be enforced.

10 years agoFix typo in app link hrefs
Daniel Martí [Thu, 28 Aug 2014 13:36:09 +0000 (15:36 +0200)]
Fix typo in app link hrefs

10 years agometadata: Simplify the writing of optional fields
Daniel Martí [Tue, 26 Aug 2014 12:06:59 +0000 (14:06 +0200)]
metadata: Simplify the writing of optional fields

10 years agoProperly obey build --force. Fixes #29.
Daniel Martí [Tue, 26 Aug 2014 11:49:42 +0000 (13:49 +0200)]
Properly obey build --force. Fixes #29.

10 years agoDon't accept empty commits
Daniel Martí [Tue, 26 Aug 2014 11:40:18 +0000 (13:40 +0200)]
Don't accept empty commits

With SCMs like git, "git checkout ''" doesn't actually fail, so one may
commit builds without noticing that they left the commit empty.

10 years agolint: warn about redundant links too
Daniel Martí [Tue, 26 Aug 2014 11:32:44 +0000 (13:32 +0200)]
lint: warn about redundant links too

10 years agolint: fix duplicate usage of appid
Daniel Martí [Tue, 26 Aug 2014 11:31:31 +0000 (13:31 +0200)]
lint: fix duplicate usage of appid

10 years agoDon't print tracebacks for option errors
Ciaran Gultnieks [Mon, 25 Aug 2014 15:48:18 +0000 (16:48 +0100)]
Don't print tracebacks for option errors

10 years agocommon: discard wrapping quotes in strings
Daniel Martí [Mon, 25 Aug 2014 06:45:46 +0000 (08:45 +0200)]
common: discard wrapping quotes in strings

Fixes auto names that shouldn't have wrapping quotes like '"PassDroid"'
instead of just 'PassDroid'.

10 years agolint: Also warn about descriptions that are just the summary
Daniel Martí [Sun, 24 Aug 2014 22:41:25 +0000 (00:41 +0200)]
lint: Also warn about descriptions that are just the summary

10 years agolint: remove pedantic warnings that are often wrong
Daniel Martí [Sun, 24 Aug 2014 22:41:01 +0000 (00:41 +0200)]
lint: remove pedantic warnings that are often wrong

10 years agoAdd lint warning for empty summaries
Daniel Martí [Sun, 24 Aug 2014 22:28:40 +0000 (00:28 +0200)]
Add lint warning for empty summaries

10 years agoFix "no such package" search logic
Daniel Martí [Sun, 24 Aug 2014 22:27:46 +0000 (00:27 +0200)]
Fix "no such package" search logic

10 years agoAdd ability to filter asshattery from stats
Ciaran Gultnieks [Fri, 22 Aug 2014 20:18:55 +0000 (21:18 +0100)]
Add ability to filter asshattery from stats

10 years agoMake the scanner log scanignore as well
Daniel Martí [Thu, 21 Aug 2014 18:02:52 +0000 (20:02 +0200)]
Make the scanner log scanignore as well

10 years agoRevert some stuff from 94c29f9c37 that shouldn't have been commited
Daniel Martí [Mon, 18 Aug 2014 09:25:39 +0000 (11:25 +0200)]
Revert some stuff from 94c29f9c37 that shouldn't have been commited

10 years agofd-commit: don't break when non-metadata files show up in git status
Daniel Martí [Sat, 16 Aug 2014 15:51:32 +0000 (17:51 +0200)]
fd-commit: don't break when non-metadata files show up in git status

10 years agoFix return in parse_metadata(None)
Daniel Martí [Sat, 16 Aug 2014 14:01:00 +0000 (16:01 +0200)]
Fix return in parse_metadata(None)

10 years agoMap apps in memory from appid to appinfo
Daniel Martí [Sat, 16 Aug 2014 10:46:02 +0000 (12:46 +0200)]
Map apps in memory from appid to appinfo

Instead of storing them in a list and doing linear searches by appinfo['id']

10 years agoAdd setup.py to pep8+pyflakes hook, fix it
Daniel Martí [Sat, 16 Aug 2014 09:51:23 +0000 (11:51 +0200)]
Add setup.py to pep8+pyflakes hook, fix it

10 years agostats: simpler repo type logic
Daniel Martí [Sat, 16 Aug 2014 09:42:51 +0000 (11:42 +0200)]
stats: simpler repo type logic

10 years agoBe more specific about when git svn is used
Daniel Martí [Sat, 16 Aug 2014 08:55:21 +0000 (10:55 +0200)]
Be more specific about when git svn is used

10 years agoAdd Update Check Name to docs
Daniel Martí [Fri, 15 Aug 2014 12:03:33 +0000 (14:03 +0200)]
Add Update Check Name to docs

10 years agoAlso warn about HEAD, ignore disabled builds
Daniel Martí [Fri, 15 Aug 2014 10:29:03 +0000 (12:29 +0200)]
Also warn about HEAD, ignore disabled builds

10 years agoTry to fix apk path matching with newer maven plugin versions
Daniel Martí [Tue, 12 Aug 2014 10:56:15 +0000 (12:56 +0200)]
Try to fix apk path matching with newer maven plugin versions

10 years agoRemove gpg sig when removing disabled builds
Ciaran Gultnieks [Mon, 11 Aug 2014 11:48:27 +0000 (12:48 +0100)]
Remove gpg sig when removing disabled builds

10 years agoDon't assume that Result: will be in the first line
Daniel Martí [Sun, 10 Aug 2014 17:56:45 +0000 (19:56 +0200)]
Don't assume that Result: will be in the first line

Fixes nasty bugs with _JAVA_OPTIONS

10 years agoMake use of Popen.wait() return value
Daniel Martí [Sun, 10 Aug 2014 10:28:19 +0000 (12:28 +0200)]
Make use of Popen.wait() return value

10 years agoinstall: don't error if there are bin apks in repo/
Daniel Martí [Sat, 9 Aug 2014 23:09:44 +0000 (01:09 +0200)]
install: don't error if there are bin apks in repo/

10 years agoFix update, broken in 7ac0c5abb2d
Ciaran Gultnieks [Fri, 8 Aug 2014 11:34:37 +0000 (12:34 +0100)]
Fix update, broken in 7ac0c5abb2d

10 years agoImprove 'no sdk version found' output
Ciaran Gultnieks [Fri, 8 Aug 2014 11:34:16 +0000 (12:34 +0100)]
Improve 'no sdk version found' output

10 years agoRevert "Add android-L target to the buildserver"
Daniel Martí [Thu, 7 Aug 2014 08:29:44 +0000 (10:29 +0200)]
Revert "Add android-L target to the buildserver"

This reverts commit 7809ef419f6dcd7f4898ddc0c51db7286fd30a59.

android-L is a preview, we want to add android-20 when it comes out.

10 years agoMerge branch 'master' into 'master'
Ciaran Gultnieks [Tue, 5 Aug 2014 21:51:52 +0000 (21:51 +0000)]
Merge branch 'master' into 'master'

Manual - fix name and location of sample files

It seems name and location of the sample files were changed. The documentation tells about "config.sample.py" and "makebs.config.sample.py". I did not find these while setting up the environment today.

The files are now located inside the "exmaples" directory and named as the real files.

See merge request !21

10 years agoupdate: use sets for permissions and features to avoid duplicates
Daniel Martí [Tue, 5 Aug 2014 21:04:21 +0000 (23:04 +0200)]
update: use sets for permissions and features to avoid duplicates

10 years agoAdd android-L target to the buildserver
Daniel Martí [Sun, 3 Aug 2014 07:51:19 +0000 (09:51 +0200)]
Add android-L target to the buildserver

10 years agoBump version to 0.2.1 0.2.1
Daniel Martí [Sat, 2 Aug 2014 11:44:48 +0000 (13:44 +0200)]
Bump version to 0.2.1

10 years agoAdd python-gnupg to buildserver
Ciaran Gultnieks [Thu, 31 Jul 2014 17:49:34 +0000 (18:49 +0100)]
Add python-gnupg to buildserver

10 years agofixed name and location of config.py sample file
Tilman Beitter [Fri, 25 Jul 2014 12:20:56 +0000 (14:20 +0200)]
fixed name and location of config.py sample file

10 years agoRemove extra argument in magic warning call
Daniel Martí [Thu, 24 Jul 2014 06:55:54 +0000 (08:55 +0200)]
Remove extra argument in magic warning call

10 years agostats: don't include disabled apps
Daniel Martí [Wed, 23 Jul 2014 17:55:45 +0000 (19:55 +0200)]
stats: don't include disabled apps

10 years agoUse --before when using find-rev in git-svn
Daniel Martí [Wed, 23 Jul 2014 15:26:33 +0000 (17:26 +0200)]
Use --before when using find-rev in git-svn

10 years agoDon't crash if a magic number can't be used
Daniel Martí [Tue, 22 Jul 2014 08:06:38 +0000 (10:06 +0200)]
Don't crash if a magic number can't be used

This should fix the anki build crashing.

10 years agoMerge branch 'master' of https://gitlab.com/eighthave/fdroidserver
Daniel Martí [Fri, 18 Jul 2014 11:21:40 +0000 (13:21 +0200)]
Merge branch 'master' of https://gitlab.com/eighthave/fdroidserver

10 years agoDrop svn support in favour of git-svn
Daniel Martí [Fri, 18 Jul 2014 10:39:24 +0000 (12:39 +0200)]
Drop svn support in favour of git-svn

Reasons:

* Cloning a svn repo via svn doesn't fetch the entire history
* Svn checkout is incredibly slow
* Svn doesn't have important features such as a 'clean' command

The only reason why we kept svn was for anonymous logins to repositories. This
is no longer a reason since git-svn also supports them.

10 years agoUse os.path.join instead of adding strings more often
Daniel Martí [Fri, 18 Jul 2014 10:21:52 +0000 (12:21 +0200)]
Use os.path.join instead of adding strings more often

10 years agoFix Tags UCM on newer git-svn versions
Daniel Martí [Fri, 18 Jul 2014 10:12:16 +0000 (12:12 +0200)]
Fix Tags UCM on newer git-svn versions

10 years agodefault to Pillow for Python Imaging, that's what most people use now
Hans-Christoph Steiner [Thu, 17 Jul 2014 16:31:57 +0000 (12:31 -0400)]
default to Pillow for Python Imaging, that's what most people use now

PIL is the old standard Python Imaging.  Pillow is a fork where development
is actually continuing.  It seems that all the distros are also switching
from PIL to Pillow, including Debian, Ubuntu, Fedora, brew, MacPorts, etc.

10 years agoPut lastbuild log on wiki by vercode (with redirect)
Ciaran Gultnieks [Thu, 17 Jul 2014 13:05:16 +0000 (14:05 +0100)]
Put lastbuild log on wiki by vercode (with redirect)

10 years agoMerge branch 'support-multiple-serverwebroots-and-fixes' into 'master'
Ciaran Gultnieks [Wed, 16 Jul 2014 21:07:10 +0000 (21:07 +0000)]
Merge branch 'support-multiple-serverwebroots-and-fixes' into 'master'

Support multiple serverwebroots and fixes

This adds support for lists of serverwebroots in config.py, and cleans newlines and spaces in the repo_description and archive_description.

10 years agoMake FlattrID a hexadecimal value
Daniel Martí [Tue, 15 Jul 2014 22:02:01 +0000 (00:02 +0200)]
Make FlattrID a hexadecimal value

This adds support for flattr "things" that are not direct flattr numeric ids,
but hexadecimal hashes representing web pages outside of flattr.

10 years agosupport lists/tuples in 'serverwebroot' config item
Hans-Christoph Steiner [Mon, 14 Jul 2014 19:03:58 +0000 (15:03 -0400)]
support lists/tuples in 'serverwebroot' config item

This allows the user to specify multiple servers to put the repo to, and
`fdroid server update` will automatically push to them all.

fixes #22 https://gitlab.com/fdroid/fdroidserver/issues/22

10 years agoupdate local_copy_dir rsync to handle FAT and filesystems with perms
Hans-Christoph Steiner [Thu, 3 Jul 2014 01:03:26 +0000 (21:03 -0400)]
update local_copy_dir rsync to handle FAT and filesystems with perms

With FAT filesystems, the user, group, and permissions will not be at all
preserved.  With file systems like ext4 that have perms, the umask might
not be set to something that makes sense for the public repo files, which
are meant to be published and therefore readible by all.

If need be, it would be easy enough to add a config option for rsync's
chmod string, to address setups that have specific permissions needs.

fixes #23 https://gitlab.com/fdroid/fdroidserver/issues/23

10 years agoauto-clean newlines and spaces in repo/archive descriptions
Hans-Christoph Steiner [Thu, 3 Jul 2014 00:57:47 +0000 (20:57 -0400)]
auto-clean newlines and spaces in repo/archive descriptions

This gives us flexibility in how the blocks of text can be formatted in
config.py, but also provides a more useful format for displaying since the
client can decide where to wrap the text.

10 years agoserver init: replace ssh subprocess with paramiko
Hans-Christoph Steiner [Thu, 3 Jul 2014 00:54:52 +0000 (20:54 -0400)]
server init: replace ssh subprocess with paramiko

It is easier to handle programming with python rather than subprocess calls
so I replaced the subprocess call to 'ssh' with paramiko.  This also makes
fdroid more portable since it no longer relies on the local system having
ssh installed.

10 years agoDon't use the error-prone -x method to avoid lint usage
Daniel Martí [Thu, 10 Jul 2014 10:07:10 +0000 (12:07 +0200)]
Don't use the error-prone -x method to avoid lint usage

10 years agoUse p.wait() instead of p.communicate()
Daniel Martí [Wed, 9 Jul 2014 17:22:39 +0000 (19:22 +0200)]
Use p.wait() instead of p.communicate()

The latter calls the former anyway, and we don't need to fetch the output nor
send any stdin.

10 years agoMake a few Popens silent
Daniel Martí [Wed, 9 Jul 2014 17:15:39 +0000 (19:15 +0200)]
Make a few Popens silent

10 years agoMuch cleaner and nicer way to ignore vcs dot dirs
Daniel Martí [Wed, 9 Jul 2014 17:11:13 +0000 (19:11 +0200)]
Much cleaner and nicer way to ignore vcs dot dirs

We now discard their entire subtree directly

10 years agoMore generic usual suspects regex
Daniel Martí [Wed, 9 Jul 2014 16:17:28 +0000 (18:17 +0200)]
More generic usual suspects regex

10 years agoOnly catch metadata exceptions from description_html
Daniel Martí [Wed, 9 Jul 2014 14:48:28 +0000 (16:48 +0200)]
Only catch metadata exceptions from description_html

10 years agoRevert "If given --verbose, don't print the whole error log again"
Daniel Martí [Wed, 9 Jul 2014 09:14:01 +0000 (11:14 +0200)]
Revert "If given --verbose, don't print the whole error log again"

This reverts commit 29ab3cf64df2eebdaae44b643a26c118b58c0c7e.

10 years agoRevert "Always print command output when --verbose"
Daniel Martí [Wed, 9 Jul 2014 09:11:41 +0000 (11:11 +0200)]
Revert "Always print command output when --verbose"

This reverts commit a4cdd92448450839c307b4a04f85a3702bfa4d9c.

10 years agoRemove some gradle @dir leftovers
Daniel Martí [Wed, 9 Jul 2014 09:11:13 +0000 (11:11 +0200)]
Remove some gradle @dir leftovers

10 years agoSimplify the finding of gradle output apks
Daniel Martí [Wed, 9 Jul 2014 09:08:11 +0000 (11:08 +0200)]
Simplify the finding of gradle output apks

10 years agoSupport git-svn refs in the form of rN
Daniel Martí [Wed, 9 Jul 2014 08:41:35 +0000 (10:41 +0200)]
Support git-svn refs in the form of rN

10 years agoDo write .fdroidvcs if the clone succeeded
Daniel Martí [Wed, 9 Jul 2014 08:30:28 +0000 (10:30 +0200)]
Do write .fdroidvcs if the clone succeeded

If the clone succeeded but the checkout failed, it didn't. Now it does, by
keeping the exception and raising it a bit later.

10 years agoSupport origin/ checkouts with tags as well in gitsvn
Daniel Martí [Tue, 8 Jul 2014 10:04:24 +0000 (12:04 +0200)]
Support origin/ checkouts with tags as well in gitsvn

10 years agoAlways print command output when --verbose
Daniel Martí [Tue, 8 Jul 2014 09:16:03 +0000 (11:16 +0200)]
Always print command output when --verbose

10 years agoDon't use generic Exception raises
Daniel Martí [Mon, 7 Jul 2014 13:41:32 +0000 (15:41 +0200)]
Don't use generic Exception raises

That hides bugs, since all exceptions (including bugs that cause raises that
weren't our doing) fall under the "Exception" except

10 years agoFix silly var name typo
Daniel Martí [Sun, 6 Jul 2014 21:28:25 +0000 (23:28 +0200)]
Fix silly var name typo

10 years agoStop at the summary when parsing a file for the app name
Daniel Martí [Sun, 6 Jul 2014 09:38:32 +0000 (11:38 +0200)]
Stop at the summary when parsing a file for the app name

10 years agoUse 'case' instead of if/elif in the line matching logic
Daniel Martí [Sun, 6 Jul 2014 09:37:52 +0000 (11:37 +0200)]
Use 'case' instead of if/elif in the line matching logic

10 years agoRevert "Rewrite fd-commit in POSIX Shell"
Daniel Martí [Sun, 6 Jul 2014 09:29:31 +0000 (11:29 +0200)]
Revert "Rewrite fd-commit in POSIX Shell"

This reverts commit 62ba9dc07e989ce75b6bd9f971bbb1cec04c4da0.

10 years agoMore log level fixes
Daniel Martí [Sat, 5 Jul 2014 13:29:12 +0000 (15:29 +0200)]
More log level fixes

10 years agoMove more logging.info stuff to debug
Daniel Martí [Sat, 5 Jul 2014 13:25:39 +0000 (15:25 +0200)]
Move more logging.info stuff to debug

10 years agoUse logging with proper format when warning about improper verbose/quiet usage
Daniel Martí [Sat, 5 Jul 2014 12:17:02 +0000 (14:17 +0200)]
Use logging with proper format when warning about improper verbose/quiet usage

10 years agoUsing $(levelname) in --quiet makes no sense
Daniel Martí [Sat, 5 Jul 2014 12:15:31 +0000 (14:15 +0200)]
Using $(levelname) in --quiet makes no sense

10 years agoAll logging goes to stderr, FDroidPopen should too
Daniel Martí [Sat, 5 Jul 2014 12:10:26 +0000 (14:10 +0200)]
All logging goes to stderr, FDroidPopen should too

10 years agoDon't directly print FDroidPopen output unless verbose
Daniel Martí [Sat, 5 Jul 2014 12:07:53 +0000 (14:07 +0200)]
Don't directly print FDroidPopen output unless verbose

10 years agoUse counters in lint
Daniel Martí [Sat, 5 Jul 2014 12:04:51 +0000 (14:04 +0200)]
Use counters in lint

10 years agoSimpler fd-commit arg logic
Daniel Martí [Sat, 5 Jul 2014 11:06:01 +0000 (13:06 +0200)]
Simpler fd-commit arg logic

10 years agoRewrite fd-commit in POSIX Shell
Daniel Martí [Sat, 5 Jul 2014 11:01:17 +0000 (13:01 +0200)]
Rewrite fd-commit in POSIX Shell

10 years agoTry the old git svn find-rev format as well
Daniel Martí [Sat, 5 Jul 2014 10:15:20 +0000 (12:15 +0200)]
Try the old git svn find-rev format as well

10 years agoLittle doc fixes
Daniel Martí [Sat, 5 Jul 2014 10:05:54 +0000 (12:05 +0200)]
Little doc fixes

10 years agocheckupdates: don't print traces independently
Daniel Martí [Fri, 4 Jul 2014 07:55:06 +0000 (09:55 +0200)]
checkupdates: don't print traces independently

10 years agoAvoid lint on all new plugin versions, remove TODO
Daniel Martí [Fri, 4 Jul 2014 06:59:30 +0000 (08:59 +0200)]
Avoid lint on all new plugin versions, remove TODO

10 years agoAdd support for gradle plugin version 0.12
Daniel Martí [Fri, 4 Jul 2014 06:50:20 +0000 (08:50 +0200)]
Add support for gradle plugin version 0.12

10 years agoFix the test suite
Daniel Martí [Thu, 3 Jul 2014 20:33:40 +0000 (22:33 +0200)]
Fix the test suite

10 years agoAdd android-20 to the SDK
Daniel Martí [Thu, 3 Jul 2014 20:30:30 +0000 (22:30 +0200)]
Add android-20 to the SDK

10 years agoAdd config.buildserver.py to the pre-commit hook
Daniel Martí [Thu, 3 Jul 2014 16:28:49 +0000 (18:28 +0200)]
Add config.buildserver.py to the pre-commit hook

10 years agoNo need to print a trace when the user did a ^C
Daniel Martí [Thu, 3 Jul 2014 16:26:49 +0000 (18:26 +0200)]
No need to print a trace when the user did a ^C

10 years agoAlso check that platform-tools and tools exist
Daniel Martí [Thu, 3 Jul 2014 16:23:35 +0000 (18:23 +0200)]
Also check that platform-tools and tools exist