fix python 2.7 incompatibility (bz 620216)

This commit is contained in:
David Malcolm 2010-08-02 15:30:51 -04:00
parent 4481fdefa3
commit 5a7f88ce71
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/virt-manager.py.in b/src/virt-manager.py.in
index fefa1c3..c285dac 100755
--- a/src/virt-manager.py.in
+++ b/src/virt-manager.py.in
@@ -273,7 +273,7 @@ def main():
# on as if all were fine. Ultimately bad stuff happens,
# so lets catch it here & get the hell out...
import warnings
- warnings.filterwarnings('error', module='gtk')
+ warnings.filterwarnings('error', module='gtk', append=True)
try:
import gobject

View File

@ -8,7 +8,7 @@
Name: virt-manager
Version: 0.8.4
Release: 2%{_extra_release}
Release: 3%{_extra_release}
Summary: Virtual Machine Manager
Group: Applications/Emulators
@ -39,6 +39,9 @@ Patch9: %{name}-%{version}-vnc-auto-keymap.patch
Patch10: %{name}-%{version}-vnc-reconnect-traceback.patch
# Fix remote VNC connection with zsh as default shell
Patch11: %{name}-%{version}-vnc-zsh.patch
# Don't override the "ignore deprecation warnings" default, which lead to a
# C-assertion failure of pygtk2 on startup under python 2.7 (bz 620216):
Patch12: %{name}-%{version}-ignore-python27-deprecation-warnings.patch
# These two are just the oldest version tested
Requires: pygtk2 >= 1.99.12-6
@ -108,6 +111,7 @@ management API.
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%build
%configure
@ -186,6 +190,9 @@ fi
%{_datadir}/dbus-1/services/%{name}.service
%changelog
* Mon Aug 2 2010 David Malcolm <dmalcolm@redhat.com> - 0.8.4-3.fc15
- fix python 2.7 incompatibility (bz 620216)
* Thu May 27 2010 Cole Robinson <crobinso@redhat.com> - 0.8.4-2.fc14
- Only close connection on specific remote errors
- Fix weird border in manager UI (bz 583728)