diff --git a/python-virtinst.spec b/python-virtinst.spec index 794232e..1876d26 100644 --- a/python-virtinst.spec +++ b/python-virtinst.spec @@ -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 (clone an existing virtual machine). %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 - 0.500.1-2.fc12 +- Fix interface API detection for libvirt < 0.7.4 + * Thu Dec 3 2009 Cole Robinson - 0.500.1-1.fc12 - Update to version 0.500.1 - virt-install now attempts --os-variant detection by default. diff --git a/virtinst-0.500.1-fix-interface-detect.patch b/virtinst-0.500.1-fix-interface-detect.patch new file mode 100644 index 0000000..0d69259 --- /dev/null +++ b/virtinst-0.500.1-fix-interface-detect.patch @@ -0,0 +1,22 @@ +# HG changeset patch +# User Cole Robinson +# 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 +