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:
Hans-Christoph Steiner 2014-04-23 12:44:37 -04:00
parent 088b7dfa2a
commit 186aec46ba
2 changed files with 41 additions and 28 deletions

View file

@ -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':