index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan Taylor <dylan@dylanmtaylor.com> | 2021-04-07 19:28:49 -0400 |
---|---|---|
committer | Dylan Taylor <dylan@dylanmtaylor.com> | 2021-04-07 19:28:49 -0400 |
commit | 75008f3f0e49f3b8ae11a983b04791bc24b0c7bc (patch) | |
tree | c58f42e555ac81f8526022e0ba73e175e8025450 /archinstall/lib | |
parent | b7891f500350d0069699a5e7e23f81df2eea952c (diff) | |
parent | 10649639ac045ae2396265bbbd65af9b78d89a5a (diff) |
-rw-r--r-- | archinstall/lib/profiles.py | 6 |
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 39411553..7e76c891 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -177,6 +177,7 @@ class Profile(Script): if hasattr(imported, '_prep_function'): return True return False + def has_post_install(self): with open(self.path, 'r') as source: source_data = source.read() @@ -193,6 +194,11 @@ class Profile(Script): if hasattr(imported, '_post_install'): return True + def is_top_level_profile(self): + with open(self.path, 'r') as source: + source_data = source.read() + return 'top_level_profile = True' in source_data + @property def packages(self) -> list: """ |