[virt-tools-list] [virt-manager PATCH 3/4] inspection: consider also epoch for pkg version

Pino Toscano ptoscano at redhat.com
Wed Feb 8 15:55:35 UTC 2017


When composing the string of the version of packages, prepend also the
epoch, as it is an important part of the package version.
---
 virtManager/details.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 20a61f7..0503a44 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -2419,8 +2419,10 @@ class vmmDetails(vmmGObjectUI):
                 if app["app_display_name"]:
                     name = app["app_display_name"]
                 version = ""
+                if app["app_epoch"] > 0:
+                    version += str(app["app_epoch"]) + ":"
                 if app["app_version"]:
-                    version = app["app_version"]
+                    version += app["app_version"]
                 if app["app_release"]:
                     version += "-" + app["app_release"]
                 summary = ""
-- 
2.9.3




More information about the virt-tools-list mailing list