Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 13:10:10 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 13:10:10 +0100
commiteaf45282764bcd71fc714e820e133ff3921dfa58 (patch)
tree9b454627b2cafc453bd372e64f3abd1009c854c8 /archinstall/lib/profiles.py
parent393758ec243423d1d24c79fa47213fad05668ce5 (diff)
Reduced calls to Profile.path
Since it triggers multiple walks and HTTP requests.
Diffstat (limited to 'archinstall/lib/profiles.py')
-rw-r--r--archinstall/lib/profiles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 091550e0..49a20794 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -150,14 +150,14 @@ class Profile(Script):
return {'path' : self.path}
def __repr__(self, *args, **kwargs):
- return f'Profile({self.path})'
+ return f'Profile({os.path.basename(self.profile)})'
def install(self):
return self.execute()
class Application(Profile):
def __repr__(self, *args, **kwargs):
- return f'Application({self._path} <"{self.path}">)'
+ return f'Application({os.path.basename(self.profile)})'
@property
def path(self):