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