virt-manager/f454798b-virtman-fix-making-screenshot.patch
Charles Arnold b05c8c6864 Accepting request 400451 from home:jubalh:branches:Virtualization
- boo#983482: Virt-Manager 1.3.2 cannot create screenshot.
  Use upstream patch from revision f454798b337aedb881671f62fe3b25fad703b768
- Add f454798b-virtman-fix-making-screenshot.patch

OBS-URL: https://build.opensuse.org/request/show/400451
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=312
2016-06-07 14:51:44 +00:00

27 lines
862 B
Diff

From f454798b337aedb881671f62fe3b25fad703b768 Mon Sep 17 00:00:00 2001
From: Cole Robinson <crobinso@redhat.com>
Date: Fri, 15 Jan 2016 15:07:58 -0500
Subject: [PATCH] details: Fix screenshot on F24 rawhide (bz 1297988)
---
virtManager/details.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/virtManager/details.py b/virtManager/details.py
index 0bd2569..3dbd82f 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -1486,6 +1486,9 @@ class vmmDetails(vmmGObjectUI):
# and future proof it a bit
if type(ret) is tuple and len(ret) >= 2:
ret = ret[1]
+ # F24 rawhide, ret[1] is a named tuple with a 'buffer' element...
+ if hasattr(ret, "buffer"):
+ ret = ret.buffer
import datetime
now = str(datetime.datetime.now()).split(".")[0].replace(" ", "_")
--
2.8.3