Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-11-27 22:17:34 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-27 22:17:34 +0000
commitd4c2fd61aad5010349767729eb913a75996de74c (patch)
treea0bc8bd56750c9ffbb4377e89219358e56b880b5
parent198ba06c2749bae8f1e35a6e69a6ddf50708a17d (diff)
Adding debug
-rw-r--r--archinstall.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index e2d8f945..548f9355 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -817,7 +817,10 @@ def setup_args_defaults(args, interactive=True):
if not 'country' in args:
country = None
if get_default_gateway_linux():
- country = guess_country(get_external_ip())
+ ip = get_external_ip()
+ print('IP:', ip)
+ country = guess_country(ip)
+ print('Country:', country)
args['country'] = 'all' if not country else country
if not 'localtime' in args: args['localtime'] = 'Europe/Stockholm' if args['country'] == 'SE' else 'GMT+0' # TODO: Arbitrary for now