mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
init: no error if examples/ dir cannot be found; overhaul repo_icon
There are so many possible installation paths for Python modules, it has been very hard to even find and test them all. This adds a fallback option if the examples dir cannot be found. A repo can work without an icon or the example config.py. This removes the fake assumption that the icon can be a full path in the config.py. While the path was being properly passed through to the index file, the file was never copied properly into place nor rsynced to the web server.
This commit is contained in:
parent
b655d20d6b
commit
5ae2703477
12 changed files with 31 additions and 31 deletions
|
|
@ -147,7 +147,7 @@ default_config = {
|
|||
'keyaliases': {},
|
||||
'repo_url': "https://MyFirstFDroidRepo.org/fdroid/repo",
|
||||
'repo_name': "My First FDroid Repo Demo",
|
||||
'repo_icon': "fdroid-icon.png",
|
||||
'repo_icon': "icon.png",
|
||||
'repo_description': _('''
|
||||
This is a repository of apps to be used with FDroid. Applications in this
|
||||
repository are either official binaries built by the original application
|
||||
|
|
@ -228,7 +228,7 @@ def fill_config_defaults(thisconfig):
|
|||
return None
|
||||
return path
|
||||
|
||||
for k in ['sdk_path', 'ant', 'mvn3', 'gradle', 'keystore', 'repo_icon']:
|
||||
for k in ['sdk_path', 'ant', 'mvn3', 'gradle', 'keystore']:
|
||||
v = thisconfig[k]
|
||||
exp = expand_path(v)
|
||||
if exp is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue