mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
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.
This commit is contained in:
parent
088b7dfa2a
commit
186aec46ba
2 changed files with 41 additions and 28 deletions
|
|
@ -105,6 +105,8 @@ def main():
|
|||
help="Alias of the repo signing key in the keystore")
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
common.test_sdk_exists(common.get_default_config())
|
||||
|
||||
# find root install prefix
|
||||
tmp = os.path.dirname(sys.argv[0])
|
||||
if os.path.basename(tmp) == 'bin':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue