[virt-manager/f16] Fix typo that broke net stats reporting Add BuildRequires: GConf2 to fix pre scriplet error

Cole Robinson crobinso at fedoraproject.org
Thu Jul 28 14:56:45 UTC 2011


commit af8dcfc633efb1ef174e0d03b565311720928483
Author: Cole Robinson <crobinso at redhat.com>
Date:   Thu Jul 28 10:58:39 2011 -0400

    Fix typo that broke net stats reporting
    Add BuildRequires: GConf2 to fix pre scriplet error

 virt-manager-fix-net-stats.patch |   19 +++++++++++++++++++
 virt-manager.spec                |   10 +++++++++-
 2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/virt-manager-fix-net-stats.patch b/virt-manager-fix-net-stats.patch
new file mode 100644
index 0000000..eb2b2ce
--- /dev/null
+++ b/virt-manager-fix-net-stats.patch
@@ -0,0 +1,19 @@
+commit 62a762e77f2f5e5298ececda6fb4638b8488da4a
+Author: Cole Robinson <crobinso at 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
diff --git a/virt-manager.spec b/virt-manager.spec
index 7dce731..43789e6 100644
--- a/virt-manager.spec
+++ b/virt-manager.spec
@@ -2,7 +2,7 @@
 
 %define _package virt-manager
 %define _version 0.9.0
-%define _release 2
+%define _release 3
 %define virtinst_version 0.600.0
 
 %define qemu_user                  "qemu"
@@ -34,6 +34,8 @@ Group: Applications/Emulators
 License: GPLv2+
 URL: http://virt-manager.org/
 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)
 BuildArch: noarch
 
@@ -90,6 +92,7 @@ Requires: virt-manager-common = %{verrel}
 BuildRequires: gettext
 BuildRequires: scrollkeeper
 BuildRequires: intltool
+BuildRequires: GConf2
 
 Requires(pre): GConf2
 Requires(post): GConf2
@@ -137,6 +140,7 @@ Common files used by the different Virtual Machine Manager interfaces.
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %if %{qemu_user}
@@ -247,6 +251,10 @@ update-desktop-database -q %{_datadir}/applications
 %endif
 
 %changelog
+* Thu Jul 28 2011 Cole Robinson <crobinso at 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 at redhat.com> - 0.9.0-1.fc16
 - Rebased to version 0.9.0
 - Use a hiding toolbar for fullscreen mode


More information about the scm-commits mailing list