1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 18:06:13 +01:00

Support native Debian packages in pkg-prefer

fixes #158
This commit is contained in:
Daniel Gollub 2015-07-02 15:08:39 +02:00
parent cf9d65b09d
commit 64838ffd51

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