[smolt] fixing encoding issue. for bz 624215

Mike McGrath mmcgrath at fedoraproject.org
Mon Aug 16 16:11:20 UTC 2010


commit 90c0832415df8f5faecda3b999c5b1ac9a7278a6
Author: Mike McGrath <mmcgrath at redhat.com>
Date:   Mon Aug 16 11:11:07 2010 -0500

    fixing encoding issue. for bz 624215

 0001-fixing-encoding-issue.patch |   13 +++++++++++++
 smolt.spec                       |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/0001-fixing-encoding-issue.patch b/0001-fixing-encoding-issue.patch
new file mode 100644
index 0000000..5532b2a
--- /dev/null
+++ b/0001-fixing-encoding-issue.patch
@@ -0,0 +1,13 @@
+diff --git a/client/sendProfile.py b/client/sendProfile.py
+index a582607..23ac0f6 100644
+--- a/client/sendProfile.py
++++ b/client/sendProfile.py
+@@ -170,7 +170,7 @@ if not opts.autoSend:
+     if opts.printOnly:
+         for line in profile.getProfile():
+             if not line.startswith('#'):
+-                print line
++                print line.encode('utf-8')
+         sys.exit(0)
+ 
+     def inner_indent(text):
diff --git a/smolt.spec b/smolt.spec
index 31ea908..8c7b338 100644
--- a/smolt.spec
+++ b/smolt.spec
@@ -2,11 +2,12 @@ Name: smolt
 
 Summary: Fedora hardware profiler
 Version: 1.4.2.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: Applications/Internet
 URL: http://fedorahosted.org/smolt
 Source: https://fedorahosted.org/releases/s/m/%{name}/%{name}-%{version}.tar.gz
+Patch0: 0001-fixing-encoding-issue.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires: dbus-python, python-urlgrabber, gawk, python-paste, hal
@@ -68,6 +69,7 @@ ensure that deps are kept small.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 cd client/
@@ -206,6 +208,9 @@ touch --no-create %{_datadir}/icons/hicolor || :
 %{_bindir}/smoltGui
 
 %changelog
+* Mon Aug 16 2010 Mike McGrath <mmcgrath at redhat.com> - 1.4.2.2-3
+- Patch to fix bz#624215
+
 * Wed Aug 11 2010 David Malcolm <dmalcolm at redhat.com> - 1.4.2.2-2
 - recompiling .py files against Python 2.7 (rhbz#623361)
 


More information about the scm-commits mailing list