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-12-06 11:32:31 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 11:32:31 +0100
commitd3462aa4833898ae7ba57feb8d5b10a028863b2a (patch)
tree2a869f6ee843e9c077ce47756be118905b072290 /archinstall
parent9921276ea541a15b8c9bdcec40e53eb432c25817 (diff)
Moving self.installer to Script() instead of Profile()
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/profiles.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index a85e4f6e..0d1c78ee 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -66,11 +66,12 @@ def list_profiles(filter_irrelevant_macs=True):
return cache
class Script():
- def __init__(self, profile):
+ def __init__(self, profile, installer=None):
# profile: https://hvornum.se/something.py
# profile: desktop
# profile: /path/to/profile.py
self.profile = profile
+ self.installer = installer
self.converted_path = None
self.namespace = os.path.splitext(os.path.basename(self.path))[0]
@@ -132,8 +133,7 @@ class Script():
class Profile(Script):
def __init__(self, installer, path, args={}):
- super(Profile, self).__init__(path)
- self.installer = installer
+ super(Profile, self).__init__(path, installer)
self._cache = None
def __dump__(self, *args, **kwargs):