Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/storage.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 18:39:57 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 18:39:57 +0000
commit4f2a6372f656323040ce1a3d5a1bf50234d392aa (patch)
tree87bcda67b7a8dfd37caa85d16d6425099baf4205 /archinstall/lib/storage.py
parent6fe63626d64ba1f0b417ca96cfff60db46e3e6df (diff)
Trying to combat #62. By implementing a UPSTREAM_URL variable globally, which can be controlled, as well as a PROFILE_PATH which controls where it should look for profiles. the list_profiles() should be more robust.
Diffstat (limited to 'archinstall/lib/storage.py')
-rw-r--r--archinstall/lib/storage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/lib/storage.py b/archinstall/lib/storage.py
index 2c621f83..9ac1d51d 100644
--- a/archinstall/lib/storage.py
+++ b/archinstall/lib/storage.py
@@ -1 +1,5 @@
-storage = {} \ No newline at end of file
+storage = {}
+
+PROFILE_PATH = ['./profiles', '~/.config/archinstall/profiles', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'profiles')]
+UPSTREAM_URL = 'https://raw.githubusercontent.com/Torxed/archinstall/master/profiles'
+PROFILE_DB = None # Used in cases when listing profiles is desired, not mandatory for direct profile grabing. \ No newline at end of file