mirror of
https://src.fedoraproject.org/rpms/virt-manager.git
synced 2025-07-17 09:34:53 +00:00
Fix typo that broke net stats reporting
Add BuildRequires: GConf2 to fix pre scriplet error
This commit is contained in:
19
virt-manager-fix-net-stats.patch
Normal file
19
virt-manager-fix-net-stats.patch
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
commit 62a762e77f2f5e5298ececda6fb4638b8488da4a
|
||||||
|
Author: Cole Robinson <crobinso@redhat.com>
|
||||||
|
Date: Wed Jul 27 12:02:29 2011 -0400
|
||||||
|
|
||||||
|
domain: Fix typo that broke net stats gathering
|
||||||
|
|
||||||
|
diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py
|
||||||
|
index d0683db..f9a39b5 100644
|
||||||
|
--- a/src/virtManager/domain.py
|
||||||
|
+++ b/src/virtManager/domain.py
|
||||||
|
@@ -1448,7 +1448,7 @@ class vmmDomain(vmmLibvirtObject):
|
||||||
|
def _sample_network_traffic(self):
|
||||||
|
rx = 0
|
||||||
|
tx = 0
|
||||||
|
- if (not self._stats_net_supported or not
|
||||||
|
+ if (not self._stats_net_supported or
|
||||||
|
not self._enable_net_poll or
|
||||||
|
not self.is_active()):
|
||||||
|
return rx, tx
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
%define _package virt-manager
|
%define _package virt-manager
|
||||||
%define _version 0.9.0
|
%define _version 0.9.0
|
||||||
%define _release 2
|
%define _release 3
|
||||||
%define virtinst_version 0.600.0
|
%define virtinst_version 0.600.0
|
||||||
|
|
||||||
%define qemu_user "qemu"
|
%define qemu_user "qemu"
|
||||||
@@ -34,6 +34,8 @@ Group: Applications/Emulators
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://virt-manager.org/
|
URL: http://virt-manager.org/
|
||||||
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
# Fix typo that broke net stats reporting
|
||||||
|
Patch1: %{name}-fix-net-stats.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@@ -90,6 +92,7 @@ Requires: virt-manager-common = %{verrel}
|
|||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: scrollkeeper
|
BuildRequires: scrollkeeper
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
|
BuildRequires: GConf2
|
||||||
|
|
||||||
Requires(pre): GConf2
|
Requires(pre): GConf2
|
||||||
Requires(post): GConf2
|
Requires(post): GConf2
|
||||||
@@ -137,6 +140,7 @@ Common files used by the different Virtual Machine Manager interfaces.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{qemu_user}
|
%if %{qemu_user}
|
||||||
@@ -247,6 +251,10 @@ update-desktop-database -q %{_datadir}/applications
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 28 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-3
|
||||||
|
- Fix typo that broke net stats reporting
|
||||||
|
- Add BuildRequires: GConf2 to fix pre scriplet error
|
||||||
|
|
||||||
* Tue Jul 26 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-1.fc16
|
* Tue Jul 26 2011 Cole Robinson <crobinso@redhat.com> - 0.9.0-1.fc16
|
||||||
- Rebased to version 0.9.0
|
- Rebased to version 0.9.0
|
||||||
- Use a hiding toolbar for fullscreen mode
|
- Use a hiding toolbar for fullscreen mode
|
||||||
|
Reference in New Issue
Block a user