Commit graph

65 commits

Author SHA1 Message Date
Daniel Martí
2f93ba9bd6 Merge branch 'master' into logging
Conflicts:
	fdroidserver/common.py
2014-01-28 14:14:59 +01:00
Daniel Martí
3687147997 Update my own copyright notices 2014-01-28 14:07:19 +01:00
Daniel Martí
dbb6db5bb5 Add logging to init.py, remove silly options.verbose code 2014-01-27 22:22:30 +01:00
Daniel Martí
62c3663df3 Lots more FDroidPopen replacements 2014-01-27 21:48:22 +01:00
Ciaran Gultnieks
874565fb73 Don't split stdout/stderr
For the most part, doing this just makes build output incomprehensible,
with errors appearing out of context.
2014-01-16 10:17:22 +00:00
Hans-Christoph Steiner
71020a9e6d update sample and add error to reflect the default basedir: .*/fdroid/repo
For user-generated repos, the default path/URL is .*/fdroid/repo, with
fdroid/ as the root where the 'fdroid' tool operates.  This makes for a URL
that is quite unique and easily matched automatically using patterns, like
in fdroidclient.

For those who don't like the standard, they can override the errror from
config.py using nonstandardwebroot = True
2013-12-04 15:28:41 -05:00
Hans-Christoph Steiner
5f06fba591 init set config.py perms to 0600, otherwise warn user if config.py is not
Since config.py contains passwords in it, it should be protected as much as
possible.  At the very least, the file permissions should be 0600 to
restrict access to user that actually edits and runs 'fdroid' commands.
2013-11-05 17:27:08 -05:00
Daniel Martí
2b0badd4c4 Fix init with common, don't require cwd in FDroidPopen 2013-11-05 09:26:56 +01:00
Hans-Christoph Steiner
633103b1b6 add options to 'fdroid init': --distinguished-name and --repo-keyalias
These allow the user to set these config.py options from the command line
when initing a new repo.
2013-11-05 09:26:56 +01:00
Hans-Christoph Steiner
3ea4e08135 in 'fdroid init' if no keystore exists or was given, then generate it 2013-11-05 09:26:55 +01:00
Daniel Martí
145b38252a Basic completion for init, add --verbose to it 2013-11-04 20:28:32 +01:00
Daniel Martí
de0986e77d Avoid init.py crash due to options being None 2013-11-04 20:21:24 +01:00
Daniel Martí
5cdca44b69 Use the new read_config in init.py 2013-11-04 20:03:45 +01:00
Daniel Martí
e2bcf4304d Don't override built-in 'dir' 2013-11-04 20:01:30 +01:00
Hans-Christoph Steiner
9344bca245 implement 'fdroid init' to set up a barebones repo from scratch
This tries to auto-detect the SDK and NDK.  If it can't find the SDK, it
prompts the user to type in the path.  It also tries to find the most
recent version of the build-tools, and should also support the old
unversioned layout.
2013-11-04 12:22:58 -05:00