Improve git repr

This commit is contained in:
ItsDrike 2020-10-22 18:31:03 +02:00
parent 60defe0832
commit 026ab5a354
No known key found for this signature in database
GPG key ID: F4E8FF4F6AC7F3B4

View file

@ -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}>"