Merge remote-tracking branch 'dylanmtaylor/minimal-install-profile' into minimal-install-profile

This commit is contained in:
Dylan Taylor 2021-04-07 12:09:15 -04:00
commit 10649639ac
2 changed files with 4 additions and 6 deletions

View File

@ -196,7 +196,6 @@ class Profile(Script):
def is_top_level_profile(self): def is_top_level_profile(self):
with open(self.path, 'r') as source: with open(self.path, 'r') as source:
# TODO: I imagine that there is probably a better way to write this.
source_data = source.read() source_data = source.read()
return 'top_level_profile = True' in source_data return 'top_level_profile = True' in source_data

View File

@ -7,15 +7,14 @@ is_top_level_profile = True
def _prep_function(*args, **kwargs): def _prep_function(*args, **kwargs):
""" """
Magic function called by the importing installer Magic function called by the importing installer
before continuing any further. It also avoids executing any before continuing any further. For minimal install,
other code in this stage. So it's a safe way to ask the user we don't need to do anything special here, but it
for more input before any other installer steps start. needs to exist and return True.
""" """
return True # Do nothing here for now return True # Do nothing and just return True
if __name__ == 'minimal': if __name__ == 'minimal':
""" """
This "profile" is a meta-profile. This "profile" is a meta-profile.
It is used for a custom minimal installation, without any desktop-specific packages. It is used for a custom minimal installation, without any desktop-specific packages.
""" """
# Do nothing here for now