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. --- examples/unattended.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/unattended.py b/examples/unattended.py index b0ef0b7b..c3bb12e6 100644 --- a/examples/unattended.py +++ b/examples/unattended.py @@ -1,6 +1,9 @@ import archinstall import time +archinstall.UPSTREAM_URL = 'https://archlinux.life/profiles' +archinstall.UPSTREAM_DB = 'index.db' + for name, info in archinstall.list_profiles().items(): # Tailored means it's a match for this machine # based on it's MAC address (or some other criteria -- cgit v1.2.3-70-g09d2