From 4f2a6372f656323040ce1a3d5a1bf50234d392aa Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 29 Nov 2020 18:39:57 +0000 Subject: 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. --- archinstall/lib/storage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'archinstall/lib/storage.py') 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 -- cgit v1.2.3-54-g00ecf