[yum-metadata-parser/f14/master] Add BZ-612409-handle-2GB-rpms.patch

James Antill james at fedoraproject.org
Fri Sep 10 17:38:26 UTC 2010


commit 0ed5e62407f6a3306bdd248f8f4c1e9206a9086c
Author: James Antill <james at and.org>
Date:   Fri Sep 10 13:36:59 2010 -0400

    Add BZ-612409-handle-2GB-rpms.patch

 BZ-612409-handle-2GB-rpms.patch |   23 +++++++++++++++++++++++
 yum-metadata-parser.spec        |    8 +++++++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/BZ-612409-handle-2GB-rpms.patch b/BZ-612409-handle-2GB-rpms.patch
new file mode 100644
index 0000000..030b712
--- /dev/null
+++ b/BZ-612409-handle-2GB-rpms.patch
@@ -0,0 +1,23 @@
+commit 2d8499cf272bf9027d015fae0d344998debfae69
+Author: James Antill <james at and.org>
+Date:   Sat Aug 21 18:26:33 2010 -0400
+
+    Handle > 2GB sized rpms, in XML => sqlite conversion, BZ 612409.
+
+diff --git a/db.c b/db.c
+index 4d49595..80f87af 100644
+--- a/db.c
++++ b/db.c
+@@ -550,9 +550,9 @@ yum_db_package_write (sqlite3 *db, sqlite3_stmt *handle, Package *p)
+     sqlite3_bind_int  (handle, 17, p->rpm_header_start);
+     sqlite3_bind_int  (handle, 18, p->rpm_header_end);
+     sqlite3_bind_text (handle, 19, p->rpm_packager, -1, SQLITE_STATIC);
+-    sqlite3_bind_int  (handle, 20, p->size_package);
+-    sqlite3_bind_int  (handle, 21, p->size_installed);
+-    sqlite3_bind_int  (handle, 22, p->size_archive);
++    sqlite3_bind_int64  (handle, 20, p->size_package);
++    sqlite3_bind_int64  (handle, 21, p->size_installed);
++    sqlite3_bind_int64  (handle, 22, p->size_archive);
+     sqlite3_bind_text (handle, 23, p->location_href, -1, SQLITE_STATIC);
+     sqlite3_bind_text (handle, 24, p->location_base, -1, SQLITE_STATIC);
+     sqlite3_bind_text (handle, 25, p->checksum_type, -1, SQLITE_STATIC);
diff --git a/yum-metadata-parser.spec b/yum-metadata-parser.spec
index edc6a2f..7084e8d 100644
--- a/yum-metadata-parser.spec
+++ b/yum-metadata-parser.spec
@@ -4,8 +4,9 @@
 Summary: A fast metadata parser for yum
 Name: yum-metadata-parser
 Version: 1.1.4
-Release: 2%{?dist}
+Release: 3%{?dist}
 Source0: http://linux.duke.edu/projects/yum/download/%{name}/%{name}-%{version}.tar.gz
+Patch0: BZ-612409-handle-2GB-rpms.patch
 License: GPLv2
 Group: Development/Libraries
 URL: http://linux.duke.edu/projects/yum/
@@ -23,6 +24,7 @@ Fast metadata parser for yum implemented in C.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__python} setup.py build
@@ -45,6 +47,10 @@ Fast metadata parser for yum implemented in C.
 %{python_sitelib_platform}/*egg-info
 
 %changelog
+* Fri Sep 10 2010 James Antill <james at fedoraproject.org> 1.1.4-3
+- Handle rpms that are over 2GB, in the .xml to .sqlite conversion.
+- Resolves: bz#612409
+
 * Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 1.1.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 


More information about the scm-commits mailing list