1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00

Merge branch 'fix/gh158-dont-barf-on-unclean-prefer-pkgdir' of https://github.com/gollub/osc

This commit is contained in:
Marcus Huewe 2015-07-02 20:05:28 +02:00
commit e065c9b371

View File

@ -137,7 +137,11 @@ class PackageQueryResult:
raise NotImplementedError
def evr(self):
evr = self.version() + "-" + self.release()
evr = self.version()
if self.release():
evr += "-" + self.release()
epoch = self.epoch()
if epoch is not None and epoch != 0:
evr = epoch + ":" + evr