chiark / gitweb /
fdroidserver.git
10 years agofix PEP8 "E302 expected 2 blank lines, found 1"
Hans-Christoph Steiner [Fri, 2 May 2014 03:39:33 +0000 (23:39 -0400)]
fix PEP8 "E302 expected 2 blank lines, found 1"

10 years agofix PEP8 "E401 multiple imports on one line"
Hans-Christoph Steiner [Fri, 2 May 2014 02:36:12 +0000 (22:36 -0400)]
fix PEP8 "E401 multiple imports on one line"

10 years agofix PEP8 "E712 comparison to True should be 'if cond is True:' or 'if cond:'"
Hans-Christoph Steiner [Fri, 2 May 2014 02:32:54 +0000 (22:32 -0400)]
fix PEP8 "E712 comparison to True should be 'if cond is True:' or 'if cond:'"

10 years agofix PEP8 "E703 statement ends with a semicolon"
Hans-Christoph Steiner [Fri, 2 May 2014 02:32:19 +0000 (22:32 -0400)]
fix PEP8 "E703 statement ends with a semicolon"

10 years agofix PEP8 "E225 missing whitespace around operator"
Hans-Christoph Steiner [Fri, 2 May 2014 02:30:44 +0000 (22:30 -0400)]
fix PEP8 "E225 missing whitespace around operator"

10 years agofix PEP8 "E228 missing whitespace around modulo operator"
Hans-Christoph Steiner [Fri, 2 May 2014 02:28:46 +0000 (22:28 -0400)]
fix PEP8 "E228 missing whitespace around modulo operator"

10 years agofix PEP8 "E251 unexpected spaces around keyword / parameter equals"
Hans-Christoph Steiner [Fri, 2 May 2014 02:27:58 +0000 (22:27 -0400)]
fix PEP8 "E251 unexpected spaces around keyword / parameter equals"

10 years agofix PEP8 "W291 trailing whitespace"
Hans-Christoph Steiner [Fri, 2 May 2014 02:26:54 +0000 (22:26 -0400)]
fix PEP8 "W291 trailing whitespace"

10 years agofix PEP8 "E202 whitespace before ']' or '}'"
Hans-Christoph Steiner [Fri, 2 May 2014 02:24:48 +0000 (22:24 -0400)]
fix PEP8 "E202 whitespace before ']' or '}'"

10 years agofix PEP8 "E201 whitespace after '(' or '[' or '{'"
Hans-Christoph Steiner [Fri, 2 May 2014 02:21:47 +0000 (22:21 -0400)]
fix PEP8 "E201 whitespace after '(' or '[' or '{'"

10 years agofix PEP8 "E231 missing whitespace after ','"
Hans-Christoph Steiner [Fri, 2 May 2014 02:16:32 +0000 (22:16 -0400)]
fix PEP8 "E231 missing whitespace after ','"

10 years agofix PEP8 "E203 whitespace before ':' or ','"
Hans-Christoph Steiner [Fri, 2 May 2014 02:06:59 +0000 (22:06 -0400)]
fix PEP8 "E203 whitespace before ':' or ','"

10 years agofix PEP8 "E711 comparison to None should be 'if cond is None:'"
Hans-Christoph Steiner [Fri, 2 May 2014 02:02:40 +0000 (22:02 -0400)]
fix PEP8 "E711 comparison to None should be 'if cond is None:'"

10 years agofix "fdroidserver/build.py:41: redefinition of unused 'paramiko' from line 39"
Hans-Christoph Steiner [Fri, 2 May 2014 02:46:51 +0000 (22:46 -0400)]
fix "fdroidserver/build.py:41: redefinition of unused 'paramiko' from line 39"

pyflakes gave this error based on the `paramiko = None` statement. I used
a different way to test whether paramiko was successfully imported that is
directly based on the relevant Exceptions.

10 years agoAdd missing -q/--quiet completions
Daniel Martí [Tue, 6 May 2014 14:19:05 +0000 (16:19 +0200)]
Add missing -q/--quiet completions

10 years agoAlso pre-compile list regex warnings
Daniel Martí [Tue, 6 May 2014 14:08:15 +0000 (16:08 +0200)]
Also pre-compile list regex warnings

10 years agoWarn about leading spaces in descriptions
Daniel Martí [Tue, 6 May 2014 13:54:34 +0000 (15:54 +0200)]
Warn about leading spaces in descriptions

10 years agoRemove the other explicit vagrant references
Ciaran Gultnieks [Thu, 1 May 2014 22:33:17 +0000 (23:33 +0100)]
Remove the other explicit vagrant references

Aside from the VM setup (which is now self-contained) the build process
only cares that it's handed a clean VM that it can access via ssh, given
a host/port/user/pubkey combination. There's no dependency outside the
getvm/releasevm functions on what kind of vm it is, what user the build
runs as, etc.

10 years agoRemove some explicit references to the vagrant user
Ciaran Gultnieks [Thu, 1 May 2014 22:24:54 +0000 (23:24 +0100)]
Remove some explicit references to the vagrant user

10 years agoSeparate the VM setup process from the build
Ciaran Gultnieks [Thu, 1 May 2014 22:04:51 +0000 (23:04 +0100)]
Separate the VM setup process from the build

10 years agoFix a few whitespace errors in build.py
Ciaran Gultnieks [Thu, 1 May 2014 21:09:17 +0000 (22:09 +0100)]
Fix a few whitespace errors in build.py

10 years agoMore PEP8 compliance (build.py, partial)
Ciaran Gultnieks [Wed, 30 Apr 2014 22:23:57 +0000 (23:23 +0100)]
More PEP8 compliance (build.py, partial)

10 years agoRemove the rest of the PEP8 errors from stats.py
Ciaran Gultnieks [Wed, 30 Apr 2014 19:53:34 +0000 (20:53 +0100)]
Remove the rest of the PEP8 errors from stats.py

10 years agoRemove strange semicolons
Ciaran Gultnieks [Wed, 30 Apr 2014 10:46:28 +0000 (11:46 +0100)]
Remove strange semicolons

10 years agoCache aggregate stats to save time
Ciaran Gultnieks [Tue, 29 Apr 2014 14:33:20 +0000 (15:33 +0100)]
Cache aggregate stats to save time

10 years agoAlso remove 'disable' from auto-update builds
Daniel Martí [Tue, 29 Apr 2014 14:06:24 +0000 (16:06 +0200)]
Also remove 'disable' from auto-update builds

10 years agoRun git submodule sync before git submodule update
Daniel Martí [Tue, 29 Apr 2014 10:00:03 +0000 (12:00 +0200)]
Run git submodule sync before git submodule update

Fixes changes in submodule urls

10 years agoUpdate 'fdroid build' args on bash-completion
Daniel Martí [Tue, 29 Apr 2014 07:28:44 +0000 (09:28 +0200)]
Update 'fdroid build' args on bash-completion

10 years agoAdd extra options to import completion
Ciaran Gultnieks [Tue, 29 Apr 2014 06:41:48 +0000 (07:41 +0100)]
Add extra options to import completion

10 years agoRevert "Don't auto update apps with the latest build disabled"
Daniel Martí [Mon, 28 Apr 2014 22:00:40 +0000 (00:00 +0200)]
Revert "Don't auto update apps with the latest build disabled"

This reverts commit 32ae8bc565fefe985c2ea1cdd831c2c5efc0932d.

10 years agoSmall glob fix to fd-commit
Daniel Martí [Mon, 28 Apr 2014 21:48:12 +0000 (23:48 +0200)]
Small glob fix to fd-commit

10 years agoAdd support for new files
Daniel Martí [Mon, 28 Apr 2014 21:36:32 +0000 (23:36 +0200)]
Add support for new files

10 years agoAdd config entry for optional gpg key
Ciaran Gultnieks [Mon, 28 Apr 2014 20:32:00 +0000 (21:32 +0100)]
Add config entry for optional gpg key

10 years agoMerge branch 'master' of https://gitlab.com/eighthave/fdroidserver
Daniel Martí [Sun, 27 Apr 2014 12:26:03 +0000 (14:26 +0200)]
Merge branch 'master' of https://gitlab.com/eighthave/fdroidserver

10 years agoSlightly better summary/name warning message
Daniel Martí [Sun, 27 Apr 2014 12:14:49 +0000 (14:14 +0200)]
Slightly better summary/name warning message

10 years agoShow detached gpg sigs for apks in repo browser
Ciaran Gultnieks [Sun, 27 Apr 2014 08:30:26 +0000 (09:30 +0100)]
Show detached gpg sigs for apks in repo browser

10 years agoupdate: report signing key fingerprint in same format as client
Hans-Christoph Steiner [Sat, 26 Apr 2014 01:07:47 +0000 (21:07 -0400)]
update: report signing key fingerprint in same format as client

fdroidclient now uses SHA256 fingerprints internally, and they are shown in
the repo details view.  This changes the digest algorithm to SHA256 and
changes the format to match what is shown in the repo details view.

10 years agoserver: fix logging of file upload to awsbucket
Hans-Christoph Steiner [Wed, 23 Apr 2014 23:55:53 +0000 (19:55 -0400)]
server: fix logging of file upload to awsbucket

Thanks to Adam Pritchard for reporting this

10 years agoserver: test using config.get() in case dict value is None
Hans-Christoph Steiner [Wed, 23 Apr 2014 23:52:37 +0000 (19:52 -0400)]
server: test using config.get() in case dict value is None

If a key 'foo' is set to None, `if config.get('foo'):` will be false while
`if 'foo' in config:` will be true.  A None value is not useful here, so
config.get() is the better check.

Thanks to Adam Pritchard for the suggestion.

10 years agoinit: --no-prompt to skip sdk_path prompt
Hans-Christoph Steiner [Wed, 23 Apr 2014 23:22:26 +0000 (19:22 -0400)]
init: --no-prompt to skip sdk_path prompt

For running the tests and in other scripted setups, the user prompt is an
annoying. Using --no-prompt means the script can test for failure.

10 years agoinit: --android-home for forcing the path to the Android SDK
Hans-Christoph Steiner [Wed, 23 Apr 2014 23:21:22 +0000 (19:21 -0400)]
init: --android-home for forcing the path to the Android SDK

This allows the user to set the path to their Android SDK from the command
line. This option is named after the standard env var ANDROID_HOME, as used
in the build.xml generated by `android update project`.  --android-home
takes precendence over the ANDROID_HOME env var if it is set.

10 years agoinit: only overwrites config.py, so run even if repo/ exists
Hans-Christoph Steiner [Wed, 23 Apr 2014 16:46:24 +0000 (12:46 -0400)]
init: only overwrites config.py, so run even if repo/ exists

Previously, `fdroid init` would exit if a repo/ subdir existed.  Since it
only changes config.py, that test just caused confusion. Now, only exit if
config.py exists, and if repo/ does not exist, create it.

10 years agoinit: split out defconfig and sdk test to run before config is loaded
Hans-Christoph Steiner [Wed, 23 Apr 2014 16:44:37 +0000 (12:44 -0400)]
init: split out defconfig and sdk test to run before config is loaded

`fdroid init` runs before any config.py exists, but it still needs to have
the default config and the SDK path tests.  So split those two bits out of
common.read_config() so that they can be run separately before config.py
is in place.

10 years ago Merge branch 'master' into 'master'
Ciaran Gultnieks [Wed, 23 Apr 2014 07:31:56 +0000 (07:31 +0000)]
 Merge branch 'master' into 'master'

support cloud storage, and assorted other improvements

I just finished support for `fdroid server update` to push to Amazon AWS S3 cloud store. It uses libcloud, so there could be lots of other cloud storage services added.  This would be used for alternative hosting locations for repos.  For example, for the Guardian Project repo, we'd include the URLs to various cloud storage options like https://s3.amazonaws.com/guardianproject/fdroid/repo
Services like https://s3.amazonaws.com/ are often not blocked when other things are.

It does not need to be Amazon-specific.  I went with libcloud because it supports like 10 cloud storage and is under active development.  What is there is just the start. I'm new to cloud stuff, so I just started based on a script that Adam Prichart of psiphon gave me. I had to do a fair amount of packaging work to get the python-libcloud Debian package updated. I almost have the 0.14.1 update done, I hope that'll be in Debian tonight.

Lots more info in the commit messages.

10 years agoadd generic installation instructions to README
Hans-Christoph Steiner [Fri, 18 Apr 2014 17:12:29 +0000 (13:12 -0400)]
add generic installation instructions to README

10 years agomake awsbucket upload only new or changed files, ignore existing
Hans-Christoph Steiner [Thu, 17 Apr 2014 22:20:36 +0000 (18:20 -0400)]
make awsbucket upload only new or changed files, ignore existing

Since it is possible to check the file size and MD5 hash of the file up on
the AWS S3 bucket, `fdroid server update` can check that a file needs to be
updated before actually deleting and uploading the new file.

fixes #3137 https://dev.guardianproject.info/issues/3137

10 years agoif the AWS S3 bucket does not exist, create it
Hans-Christoph Steiner [Wed, 23 Apr 2014 03:11:58 +0000 (23:11 -0400)]
if the AWS S3 bucket does not exist, create it

This makes the AWS S3 setup dead simple: just put in a awsbucket name of
your choosing, set the AWS credentials, and it'll do the rest, whether the
bucket exists already or not.  S3 buckets are trivial to delete too, in
case of error: `s3cmd rb s3://mybadbucketname`.

10 years agosupport cloud storage with libcloud, starting with Amazon AWS S3
Hans-Christoph Steiner [Wed, 16 Apr 2014 02:41:28 +0000 (22:41 -0400)]
support cloud storage with libcloud, starting with Amazon AWS S3

apache-libcloud enables uploading to basically any cloud storage service.
This is the first implementation that allows `fdroid server` to push a repo
up to a AWS S3 'bucket'.  Supporting other cloud storage services should
mostly be a matter of finding the libcloud "Provider" and setting the
access creditials.

fixes #3137 https://dev.guardianproject.info/issues/3137

10 years agoimplement -q and -v for `fdroid server`
Hans-Christoph Steiner [Wed, 16 Apr 2014 00:47:03 +0000 (20:47 -0400)]
implement -q and -v for `fdroid server`

The --quiet and --verbose options that are standard with the fdroid tools
were not implemented yet with the `server` command.

10 years agoreorg `fdroid server` to allow for multiple server types
Hans-Christoph Steiner [Wed, 16 Apr 2014 00:00:31 +0000 (20:00 -0400)]
reorg `fdroid server` to allow for multiple server types

Right now, ssh+rsync is the only supported server upload type.  Things like
cloud storage services are useful storage bins for fdroid repos since they
are often not blocked while specific websites like Google Play are.

10 years agomake `fdroid server` check whether serverwebroot is set
Hans-Christoph Steiner [Tue, 15 Apr 2014 03:44:20 +0000 (23:44 -0400)]
make `fdroid server` check whether serverwebroot is set

Having serverwebroot optional in `fdroid server` means that it can support
multiple methods of hosting, like cloud storage services.  `fdroid server`
can also then support multiple repo hosting options at the same time.

10 years agoif using crypto smartcard, remind user to plug it in
Hans-Christoph Steiner [Thu, 17 Apr 2014 18:39:47 +0000 (14:39 -0400)]
if using crypto smartcard, remind user to plug it in

10 years agooverwrite password files if they exist
Hans-Christoph Steiner [Wed, 16 Apr 2014 03:48:48 +0000 (23:48 -0400)]
overwrite password files if they exist

The .fdroid.*.txt password files are only meant to be a conduit for the
passwords, so blow them away everytime.  The canonical password is stored
in config.py.

It might makes sense to replace these files with env vars using
-storepass:env and -keypass:env.  I figured that the passwords are already
in a file, config.py, so adding more files in the same location with the
same perms would not increase the risk at all.

10 years agoupdate manual to use public https:// URLs to git repos
Hans-Christoph Steiner [Tue, 15 Apr 2014 02:14:46 +0000 (22:14 -0400)]
update manual to use public https:// URLs to git repos

git@gitlab.com URLs require a gitlab login, https:// URLs do not

10 years agofix warnings in python files manifest
Hans-Christoph Steiner [Tue, 15 Apr 2014 02:11:36 +0000 (22:11 -0400)]
fix warnings in python files manifest

    warning: no files found matching 'jenkins-build.sh'
    warning: no files found matching 'buildserver/cookbooks'

10 years agowhen running `pip install` tests, cache downloads from pypi
Hans-Christoph Steiner [Mon, 14 Apr 2014 20:12:17 +0000 (16:12 -0400)]
when running `pip install` tests, cache downloads from pypi

Since this runs frequently without much change, it makes sense to cache the
downloaded source packages as much as possible.  There are probably better
ways to do this, but this is really easy.

https://stackoverflow.com/questions/4806448/how-do-i-install-from-a-local-cache-with-pip

10 years agoSupport custom maven/gradle resource paths
Daniel Martí [Tue, 22 Apr 2014 09:39:29 +0000 (11:39 +0200)]
Support custom maven/gradle resource paths

10 years agoRun maven with jar.sign.skip=true too
Daniel Martí [Tue, 22 Apr 2014 09:22:53 +0000 (11:22 +0200)]
Run maven with jar.sign.skip=true too

10 years agoReflect new summary char limit
Daniel Martí [Sun, 20 Apr 2014 17:15:40 +0000 (19:15 +0200)]
Reflect new summary char limit

10 years agoProperly complete partially written vercodes
Daniel Martí [Fri, 18 Apr 2014 21:56:25 +0000 (23:56 +0200)]
Properly complete partially written vercodes

10 years agoCount warnings and apps in lint
Daniel Martí [Fri, 18 Apr 2014 19:17:06 +0000 (21:17 +0200)]
Count warnings and apps in lint

10 years agoAdd summary-related lint warnings
Daniel Martí [Fri, 18 Apr 2014 18:54:44 +0000 (20:54 +0200)]
Add summary-related lint warnings

10 years agoOnly do the latest five tags when using UCM:Tags on git
Daniel Martí [Thu, 17 Apr 2014 19:05:18 +0000 (21:05 +0200)]
Only do the latest five tags when using UCM:Tags on git

10 years agoNo longer use universal_newlines
Daniel Martí [Thu, 17 Apr 2014 18:45:36 +0000 (20:45 +0200)]
No longer use universal_newlines

It was added in an attempt to get git clone/fetch output, which did not
succeed.

10 years agoFix donate/flattr links in web repo browser
Ciaran Gultnieks [Thu, 17 Apr 2014 11:12:50 +0000 (12:12 +0100)]
Fix donate/flattr links in web repo browser

10 years agoChange widget implementation to allow multiple instances
Ciaran Gultnieks [Thu, 17 Apr 2014 10:40:13 +0000 (11:40 +0100)]
Change widget implementation to allow multiple instances

10 years ago Merge branch 'master' into 'master'
Ciaran Gultnieks [Thu, 17 Apr 2014 11:06:35 +0000 (11:06 +0000)]
 Merge branch 'master' into 'master'

add Flattr button to app details pageMaster

10 years agoAlso ignore .bzr when scanning
Daniel Martí [Wed, 16 Apr 2014 19:06:24 +0000 (21:06 +0200)]
Also ignore .bzr when scanning

10 years agoAlso glob the 'rm' field
Daniel Martí [Tue, 15 Apr 2014 21:58:12 +0000 (23:58 +0200)]
Also glob the 'rm' field

10 years agoGlob scanignore and scandelete
Daniel Martí [Tue, 15 Apr 2014 21:53:44 +0000 (23:53 +0200)]
Glob scanignore and scandelete

These fields can still be used without globbing, but globbing can be very
useful in some cases.

10 years agoRewrite much of the source scanner
Daniel Martí [Tue, 15 Apr 2014 21:33:54 +0000 (23:33 +0200)]
Rewrite much of the source scanner

* Group apk, jar and zip files in the same case
* Use regex to support more patterns and be more flexible
* Only check for usual suspects in jar files (saves time)
* Also catch unknown zip-like files as warnings

10 years agoFix: some apks have a zip mimetype instead of a jar one
Daniel Martí [Tue, 15 Apr 2014 15:50:08 +0000 (17:50 +0200)]
Fix: some apks have a zip mimetype instead of a jar one

10 years agoFix apk path on gradle builds with many subdirs
Daniel Martí [Tue, 15 Apr 2014 09:50:02 +0000 (11:50 +0200)]
Fix apk path on gradle builds with many subdirs

10 years ago Merge branch 'master' into 'master'
Ciaran Gultnieks [Sun, 13 Apr 2014 18:57:05 +0000 (18:57 +0000)]
 Merge branch 'master' into 'master'

Updated manual with gitlab repo links

10 years agoupdated gitorious repo links to gitlab repo links
viccuad [Sat, 12 Apr 2014 15:07:31 +0000 (17:07 +0200)]
updated gitorious repo links to gitlab repo links

10 years agoremove border around Flattr button
Torsten Grote [Sat, 12 Apr 2014 11:33:07 +0000 (13:33 +0200)]
remove border around Flattr button

10 years agoadd Flattr button to app details page
Torsten Grote [Sat, 12 Apr 2014 11:27:34 +0000 (13:27 +0200)]
add Flattr button to app details page

10 years agoSupport gradle variables without an equals sign
Daniel Martí [Fri, 11 Apr 2014 23:00:59 +0000 (01:00 +0200)]
Support gradle variables without an equals sign

10 years agoFix counting of scanner problems
Daniel Martí [Fri, 11 Apr 2014 22:14:05 +0000 (00:14 +0200)]
Fix counting of scanner problems

10 years agoPoint wiki current/history links to gitlab
Ciaran Gultnieks [Fri, 11 Apr 2014 15:44:13 +0000 (16:44 +0100)]
Point wiki current/history links to gitlab

10 years ago Merge branch 'master' into 'master'
Ciaran Gultnieks [Thu, 10 Apr 2014 16:46:17 +0000 (16:46 +0000)]
 Merge branch 'master' into 'master'

fix tests

this fixes the copying of APKs in the test script

10 years agouse FDroid-standard naming when copying APKs for tests
Hans-Christoph Steiner [Thu, 10 Apr 2014 16:37:07 +0000 (12:37 -0400)]
use FDroid-standard naming when copying APKs for tests

This makes sure that there are no APKs with duplicate version codes.

10 years agomove run-tests to /bin/bash so we can use bashisms
Hans-Christoph Steiner [Thu, 10 Apr 2014 16:31:14 +0000 (12:31 -0400)]
move run-tests to /bin/bash so we can use bashisms

10 years agoFix Categories: default value
Daniel Martí [Thu, 10 Apr 2014 15:27:53 +0000 (17:27 +0200)]
Fix Categories: default value

10 years agoAdd buildserver details to AndroidManifest.xml
Ciaran Gultnieks [Thu, 10 Apr 2014 12:59:17 +0000 (13:59 +0100)]
Add buildserver details to AndroidManifest.xml

10 years agoPut commit hash of fdroidserver in use onto buildserver
Ciaran Gultnieks [Thu, 10 Apr 2014 12:58:42 +0000 (13:58 +0100)]
Put commit hash of fdroidserver in use onto buildserver

10 years agoSupport different identity file structures
Ciaran Gultnieks [Thu, 10 Apr 2014 12:57:16 +0000 (13:57 +0100)]
Support different identity file structures

Something to do with vagrant/paramiko versioning.

10 years agoFix snapshot logging error
Ciaran Gultnieks [Thu, 10 Apr 2014 12:56:45 +0000 (13:56 +0100)]
Fix snapshot logging error

10 years agoSpecify that scanner warnings are not counted
Daniel Martí [Tue, 8 Apr 2014 16:49:43 +0000 (18:49 +0200)]
Specify that scanner warnings are not counted

10 years ago Merge branch 'master' into 'master'
Ciaran Gultnieks [Tue, 8 Apr 2014 08:26:37 +0000 (08:26 +0000)]
 Merge branch 'master' into 'master'

implemeted support for using a smartcard for the repo signing key

This changeset implements using a smartcard (HSM) as the keystore for the signing key.  It also fixes lots of little bugs in the `fdroid init` process.

10 years agoadd note about automatically generated signing key after init
Hans-Christoph Steiner [Fri, 4 Apr 2014 04:20:34 +0000 (00:20 -0400)]
add note about automatically generated signing key after init

10 years agowarn user if smartcard keystore is set but opensc is not installed
Hans-Christoph Steiner [Fri, 4 Apr 2014 04:15:47 +0000 (00:15 -0400)]
warn user if smartcard keystore is set but opensc is not installed

10 years agosupport repo signing with a key on a smartcard
Hans-Christoph Steiner [Fri, 4 Apr 2014 04:05:22 +0000 (00:05 -0400)]
support repo signing with a key on a smartcard

This assumes that the smartcard is already setup with a signing key.  init
does not generate a key on the smartcard, and skips genkey() if things are
configured to use a smartcard.

This also does not touch APK signing because that is a much more elaborate
question, since each app is signed by its own key.

10 years agofix bug setting repo_keyalias in init
Hans-Christoph Steiner [Fri, 4 Apr 2014 03:05:27 +0000 (23:05 -0400)]
fix bug setting repo_keyalias in init

10 years agofix bug listing new key created in init
Hans-Christoph Steiner [Fri, 4 Apr 2014 03:00:36 +0000 (23:00 -0400)]
fix bug listing new key created in init

Oops, a typo with a ] in e53092cffa993031cdd6f3269ca792e42b41a9a6

10 years agoadd test case were init generates a keystore and uses it
Hans-Christoph Steiner [Fri, 4 Apr 2014 02:17:52 +0000 (22:17 -0400)]
add test case were init generates a keystore and uses it

10 years agoif keystore is given as arg to init, create keystore if it does not exist
Hans-Christoph Steiner [Fri, 4 Apr 2014 02:30:43 +0000 (22:30 -0400)]
if keystore is given as arg to init, create keystore if it does not exist

Previously, `fdroid init --keystore /tmp/foo` expected the keystore to
exist, or it quit with an error.  But I've changed my mind, I think it is
useful to have it generate a new keystore at that location if it does not
exist.  For example, in tests/run-tests.sh. It still will not clobber an
existing file at that location.

10 years ago'smartcardoptions' config item for setting up HSMs with fdroid
Hans-Christoph Steiner [Fri, 4 Apr 2014 02:07:45 +0000 (22:07 -0400)]
'smartcardoptions' config item for setting up HSMs with fdroid

These options are needed to configure Java's keytool and jarsigner to use
a Hardware Security Module aka HSM aka smartcard.  The defaults provided
are meant to make things work as easily as possible.

10 years agomake repo_keyalias like a config option: leave it commented out
Hans-Christoph Steiner [Fri, 4 Apr 2014 01:44:40 +0000 (21:44 -0400)]
make repo_keyalias like a config option: leave it commented out

Before, the code relies on repo_keyalias being None, which does not feel
conffile-like.  Now, its commented out if its not set.

10 years agouse default keystore path when generating a new setup with init
Hans-Christoph Steiner [Fri, 4 Apr 2014 01:42:23 +0000 (21:42 -0400)]
use default keystore path when generating a new setup with init

Before, the path to the keystore was also hardcoded in init.py, this makes
init now get it from the defaults set in common.py.