mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
Improve git repr
This commit is contained in:
parent
60defe0832
commit
026ab5a354
|
@ -43,6 +43,8 @@ class Package:
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
if self.git:
|
if self.git:
|
||||||
|
if self.name == self.git_url:
|
||||||
|
return f"<Git package: {self.name}>"
|
||||||
return f"<Git package: {self.name} ({self.git_url})>"
|
return f"<Git package: {self.name} ({self.git_url})>"
|
||||||
elif self.aur:
|
elif self.aur:
|
||||||
return f"<Aur package: {self.name}>"
|
return f"<Aur package: {self.name}>"
|
||||||
|
|
Loading…
Reference in a new issue