index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-08 06:10:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 06:10:28 +0000 |
commit | b2b9ac2d405698bb259ff338b159f94bdcb0f87d (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: """ |