[fedora-virt-maint] rpms/python-virtinst/devel virtinst-0.500.1-fix-interface-detect.patch, NONE, 1.1 python-virtinst.spec, 1.75, 1.76

Cole Robinson crobinso at fedoraproject.org
Wed Dec 9 21:11:49 UTC 2009


Author: crobinso

Update of /cvs/pkgs/rpms/python-virtinst/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27483

Modified Files:
	python-virtinst.spec 
Added Files:
	virtinst-0.500.1-fix-interface-detect.patch 
Log Message:
Fix interface API detection for libvirt < 0.7.4


virtinst-0.500.1-fix-interface-detect.patch:
 support.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE virtinst-0.500.1-fix-interface-detect.patch ---
# HG changeset patch
# User Cole Robinson <crobinso at redhat.com>
# Date 1260392543 18000
# Node ID 15c118a449a7e2c861b6630da31fcb25526af617
# Parent  989eb68a9c1889c783152705e6ed7c0580dfa814
support: Generic exceptions mean libvirt support is busted.

Fixes testing for interface APIs on libvirt < 0.7.4

diff -r 989eb68a9c18 -r 15c118a449a7 virtinst/support.py
--- a/virtinst/support.py	Mon Dec 07 20:41:58 2009 +0000
+++ b/virtinst/support.py	Wed Dec 09 16:02:23 2009 -0500
@@ -173,7 +173,8 @@
             return False
 
     except Exception:
-        return True
+        # Other python exceptions likely mean the bindings are horked
+        return False
 
     return True
 


Index: python-virtinst.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-virtinst/devel/python-virtinst.spec,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -p -r1.75 -r1.76
--- python-virtinst.spec	3 Dec 2009 22:39:16 -0000	1.75
+++ python-virtinst.spec	9 Dec 2009 21:11:49 -0000	1.76
@@ -17,8 +17,10 @@
 Summary: Python modules and utilities for installing virtual machines
 Name: python-%{appname}
 Version: 0.500.1
-Release: 1%{_extra_release}
+Release: 2%{_extra_release}
 Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
+# Fix interface API detection for libvirt < 0.7.4
+Patch1: %{appname}-%{version}-fix-interface-detect.patch
 
 License: GPLv2+
 Group: Development/Libraries
@@ -46,6 +48,7 @@ and install new VMs) and virt-clone (clo
 
 %prep
 %setup -q -n %{appname}-%{version}
+%patch1 -p1
 
 %build
 python setup.py build
@@ -81,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/virt-convert
 
 %changelog
+* Wed Dec 09 2009 Cole Robinson <crobinso at redhat.com> - 0.500.1-2.fc13
+- Fix interface API detection for libvirt < 0.7.4
+
 * Thu Dec  3 2009 Cole Robinson <crobinso at redhat.com> - 0.500.1-1.fc13
 - Update to version 0.500.1
 - virt-install now attempts --os-variant detection by default.




More information about the Fedora-virt-maint mailing list