Skip to content

Commit

Permalink
better string representation of Rpm class for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer authored and cbosdo committed Sep 2, 2024
1 parent c1f4dea commit af90edc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions obs_maven/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def __init__(self, location, mtime, name, epoch, version, release):
self.version = version
self.release = release

def __str__(self):
return "<Rpm {}: {}:{}-{}>".format(self.pkgname, self.epoch or 0, self.version, self.release)

def compare(self, other):
return _compare_rpm_labels(
(other.epoch, other.version, other.release), (self.epoch, self.version, self.release)
Expand Down

0 comments on commit af90edc

Please sign in to comment.