Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 19:52:14 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 19:52:14 +0000
commit77e37823748acc30ea74d75da2c7d20dca4acfcd (patch)
treec2eb373e6dfca574f6b5e6e316ea76b3518c97e0 /archinstall
parent9db54786f095bc8b6679df8453d1356cd017e8fc (diff)
Forgot a few imports
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/profiles.py6
-rw-r--r--archinstall/lib/storage.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 021c48d6..07bd1c26 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -5,7 +5,7 @@ from .general import multisplit, sys_command, log
from .exceptions import *
from .networking import *
from .output import log, LOG_LEVELS
-from .storage import storage, UPSTREAM_URL, PROFILE_DB
+from .storage import storage, UPSTREAM_URL, PROFILE_DB, PROFILE_PATH
def grab_url_data(path):
safe_path = path[:path.find(':')+1]+''.join([item if item in ('/', '?', '=', '&') else urllib.parse.quote(item) for item in multisplit(path[path.find(':')+1:], ('/', '?', '=', '&'))])
@@ -42,9 +42,9 @@ def list_profiles(filter_irrelevant_macs=True):
break
# Grab profiles from upstream URL
- if UPSTREAM_DB:
+ if PROFILE_DB:
try:
- profile_list = json.loads(grab_url_data(os.path.join(UPSTREAM_URL, UPSTREAM_DB)))
+ profile_list = json.loads(grab_url_data(os.path.join(UPSTREAM_URL, PROFILE_DB)))
except urllib.error.UTTPError as err:
print(f'Error: Listing profiles on URL "{UPSTREAM_URL}" resulted in:', err)
return cache
diff --git a/archinstall/lib/storage.py b/archinstall/lib/storage.py
index bb41c999..11ceafee 100644
--- a/archinstall/lib/storage.py
+++ b/archinstall/lib/storage.py
@@ -1,3 +1,5 @@
+import os
+
storage = {}
# There's a few scenarios of execution: