Commit graph

563 commits

Author SHA1 Message Date
Hans-Christoph Steiner
58a484e74e fix PEP8 "W291 trailing whitespace" 2014-05-06 11:45:02 -04:00
Hans-Christoph Steiner
998011d535 fix PEP8 "E231 missing whitespace after ','" 2014-05-06 11:45:02 -04:00
Hans-Christoph Steiner
f1812d5935 fix PEP8 "E203 whitespace before ':' or ','" 2014-05-06 11:45:02 -04:00
Hans-Christoph Steiner
5e93b6c80b 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.
2014-04-25 21:07:47 -04:00
Hans-Christoph Steiner
1ca7949bb1 if using crypto smartcard, remind user to plug it in 2014-04-22 22:59:27 -04:00
Ciaran Gultnieks
81e6fb8eb5 Point wiki current/history links to gitlab 2014-04-11 16:44:33 +01:00
Hans-Christoph Steiner
3829d37d34 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.
2014-04-07 16:00:18 -04:00
Hans-Christoph Steiner
2bd62239f7 '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.
2014-04-07 16:00:18 -04:00
Hans-Christoph Steiner
0950cdac09 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.
2014-04-07 16:00:18 -04:00
Hans-Christoph Steiner
e53092cffa fix genkey key listing in fdroid init
FDroidPopen() does not have a way to send to stdin, so we will use the
password file for now.  In the long run, at least the keypass should always
be sent via stdin rather than via a file.  Ideally, storepass would be too,
but if they are different, then storepass is less important.
2014-04-01 18:04:36 -04:00
Hans-Christoph Steiner
525759b235 stop passing passphrases via args, instead use prepared files
Any process can read the process table, and can therefore see the entire
command line of any other process.  That means its a bad idea to ever put
passwords as part of a command line.  Python is executing keytool and
jarsigner command lines here, so now instead of putting the password on the
command line, a file is passed instead with suitable file permissions.
This should reduce the exposure a lot.  But still, sensitive passwords
should not be written to any text file.

This change requires OpenJDK-7 since the :file option to -storepass and
-keypass was only added in Java 7's keytool and jarsigner.
2014-03-31 21:02:42 -04:00
Daniel Martí
6c6a9c4bb2 Revert "Wrap maintainer notes in <pre> to keep newlines and formatting"
This reverts commit 94bb9d9355.
2014-03-25 09:41:55 +01:00
Daniel Martí
94bb9d9355 Wrap maintainer notes in <pre> to keep newlines and formatting 2014-03-24 15:11:05 +01:00
Ciaran Gultnieks
78bee1990c Remove apks with no metadata (unless told to create it) 2014-03-04 23:36:50 +00:00
Ciaran Gultnieks
cb92ea1598 Fixed some logging levels for wiki update, apk cache, etc 2014-02-22 10:00:29 +00:00
Ciaran Gultnieks
37dda9414c Add --quiet option, restricting output to warnings/errors 2014-02-22 09:46:24 +00:00
Daniel Martí
8888cd6339 Add support for maxSdkVersion, bump index version integer 2014-02-19 17:30:06 +01:00
Daniel Martí
3483bad392 Make app['Categories'] a list, get unique categories via a set 2014-02-19 10:27:38 +01:00
Daniel Martí
d192b40687 Can't update an app if there is no CV 2014-02-17 16:51:22 +01:00
Daniel Martí
ec0de6b370 Do some warnings properly 2014-02-07 21:38:28 +01:00
Daniel Martí
0b6faa5f22 Try to fix some TypeErrors 2014-02-07 21:36:19 +01:00
Daniel Martí
7bf74d47bb Typo 2014-02-03 14:07:01 +01:00
Daniel Martí
8b26f4b319 Merge branch 'master' into logging 2014-01-31 09:14:03 +01:00
Hans-Christoph Steiner
2d6f3f8cec use https URI for f-droid.org everywhere and avoid redirects
Now that f-droid.org defaults to https, use only https URIs to save
redirects and leak less info.
2014-01-30 20:32:38 -05:00
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í
e20fa9d7f4 Half-way done switching prints for logs 2014-01-27 21:49:01 +01:00
Daniel Martí
62c3663df3 Lots more FDroidPopen replacements 2014-01-27 21:48:22 +01:00
Daniel Martí
f277ba6b33 Avoid more possible crashes when invalid icons are present 2014-01-24 12:55:43 +01:00
Ciaran Gultnieks
5ac41e7ca7 Lose some spurious 'apps to update' entries from wiki 2014-01-20 11:50:48 +00:00
Ciaran Gultnieks
450685fe2f Resolve some missing wiki category issues 2014-01-16 08:58:49 +00:00
Daniel Martí
a7f259e7cc Don't crash if the app icons are wrong 2014-01-14 10:28:23 +01:00
Ciaran Gultnieks
5f736e1410 Transfer apk info when archiving
Just dropping this apk entry temporarily caused an old version of the
app to appear on the wiki as a failing build. (only for one cycle after
the archiving happened). Moving it to the archived apks list ought to
resolve that problem.
2014-01-09 12:35:26 +00:00
Daniel Martí
afcadf2e6a Fix: Re-add <icon> element to index 2014-01-07 19:22:07 +01:00
Daniel Martí
71db41b869 Bump index version to 11, add index version changelog 2014-01-07 17:59:02 +01:00
Daniel Martí
f37d00507b Avoid possible crashes
* No 160 dpi icon available
* Trying to resize a non-existing icon
* Non-dpi icon being lower density than ldpi
2014-01-07 17:05:04 +01:00
Daniel Martí
77b6974303 Support application and launchable-activity icons as fallback 2014-01-07 17:01:51 +01:00
Daniel Martí
5d5a4df7d1 Create icons dicts like the rest 2014-01-07 16:34:24 +01:00
Daniel Martí
729f457f0b Don't print twice as many lines when resizing icons 2014-01-07 16:25:29 +01:00
Daniel Martí
f82207ec60 Keep the same ZipFile instance to retrieve all the icons 2014-01-07 16:18:25 +01:00
Daniel Martí
d6810bfaf7 Use application: and launchable-activity: icons as fallback 2014-01-07 16:18:25 +01:00
Daniel Martí
242de2368a Add 640 dpi icons dir 2014-01-07 16:18:24 +01:00
Ciaran Gultnieks
3ecf0e4373 Use app categories as wiki categories 2014-01-07 13:40:02 +00:00
Daniel Martí
8ea114114f Uncomment verbose messages, fix -I 2014-01-07 12:24:15 +01:00
Daniel Martí
0799462c11 Finish TODO; Fill missing icon densities the best we can 2014-01-07 12:20:24 +01:00
Daniel Martí
e1ed4099a7 Rewrite: Do icons per density, /icons being mdpi by default 2014-01-07 12:11:30 +01:00
Daniel Martí
b5c0db9ecc Add icon helper functions for later use 2014-01-07 11:16:58 +01:00
Daniel Martí
cf852012ed Start publishing indexes with index version "10" 2014-01-03 20:49:20 +01:00
Daniel Martí
4d668e4ed6 Add Dogecoin support, some None fixes 2013-12-31 11:57:35 +01:00
Daniel Martí
4935496f48 New field: Provides 2013-12-31 10:47:50 +01:00