- Add 2-liner fixing the load_contents functions not working appropriately

This commit is contained in:
Bastien Nocera 2008-10-21 18:20:35 +00:00
parent eaf63af837
commit 067def3442
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,22 @@
Index: gio/gfile.override
===================================================================
--- gio/gfile.override (revision 964)
+++ gio/gfile.override (working copy)
@@ -196,7 +196,7 @@
return NULL;
if (ret)
- return Py_BuildValue("(sks)", contents, lenght, etag_out);
+ return Py_BuildValue("(s#ks)", contents, length, length, etag_out);
else {
Py_INCREF(Py_None);
return Py_None;
@@ -270,7 +270,7 @@
return NULL;
if (ret)
- return Py_BuildValue("(sks)", contents, lenght, etag_out);
+ return Py_BuildValue("(s#ks)", contents, length, length, etag_out);
else {
Py_INCREF(Py_None);
return Py_None;

View File

@ -8,7 +8,7 @@
Name: pygobject2
Version: 2.15.4
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Group: Development/Languages
Summary: Python bindings for GObject
@ -20,6 +20,8 @@ Source: pygobject-%{version}.tar.bz2
# RH bug #544946
Patch0: pygobject-2.15.2-threads-init.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=551059
Patch1: pygobject-gio-load-contents.patch
### Build Dependencies ###
@ -62,6 +64,7 @@ This package contains documentation files for %{name}.
%prep
%setup -q -n pygobject-%{version}
%patch0 -p1 -b .threads-init
%patch1 -p0 -b .load-contents
%build
%configure --enable-thread
@ -116,6 +119,9 @@ rm -fr $RPM_BUILD_ROOT
%{_datadir}/pygobject/xsl
%changelog
* Tue Oct 21 2008 - Bastien Nocera <bnocera@redhat.com> - 2.15.4-2.fc10
- Add 2-liner fixing the load_contents functions not working appropriately
* Wed Sep 03 2008 Matthew Barnes <mbarnes@redhat.com> - 2.15.4-1.fc10
- Update to 2.15.4