[yum-metadata-parser: 1/2] - Really handle rpms that are over 2GB, in the .xml to .sqlite conversion. - Resolves: bz#612409

James Antill james at fedoraproject.org
Thu Feb 24 16:53:02 UTC 2011


commit d623e883b398e613ba58aab77269fff07d7a312e
Author: James Antill <james at and.org>
Date:   Thu Feb 24 11:51:08 2011 -0500

    - Really handle rpms that are over 2GB, in the .xml to .sqlite conversion.
    - Resolves: bz#612409

 BZ-612409-handle-2GB-rpms.patch |   25 +++++++++++++++++++++++++
 yum-metadata-parser.spec        |    6 +++++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/BZ-612409-handle-2GB-rpms.patch b/BZ-612409-handle-2GB-rpms.patch
index 030b712..057665f 100644
--- a/BZ-612409-handle-2GB-rpms.patch
+++ b/BZ-612409-handle-2GB-rpms.patch
@@ -21,3 +21,28 @@ index 4d49595..80f87af 100644
      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);
+commit ffdcc0bf2bc9abc1f36f47378128af9afe2134e9
+Author: James Antill <james at and.org>
+Date:   Thu Feb 24 11:18:54 2011 -0500
+
+    Change the conversion to be 64bit safe too, *sigh*. BZ 612409
+
+diff --git a/xml-parser.c b/xml-parser.c
+index 9617d17..35f04e6 100644
+--- a/xml-parser.c
++++ b/xml-parser.c
+@@ -185,11 +185,11 @@ primary_parser_package_start (PrimarySAXContext *ctx,
+             value = attrs[++i];
+ 
+             if (!strcmp (attr, "package"))
+-                p->size_package = strtol(value, NULL, 10);
++                p->size_package = strtoll(value, NULL, 10);
+             else if (!strcmp (attr, "installed"))
+-                p->size_installed = strtol(value, NULL, 10);
++                p->size_installed = strtoll(value, NULL, 10);
+             else if (!strcmp (attr, "archive"))
+-                p->size_archive = strtol(value, NULL, 10);
++                p->size_archive = strtoll(value, NULL, 10);
+         }
+     }
+ 
diff --git a/yum-metadata-parser.spec b/yum-metadata-parser.spec
index 7084e8d..cf313aa 100644
--- a/yum-metadata-parser.spec
+++ b/yum-metadata-parser.spec
@@ -4,7 +4,7 @@
 Summary: A fast metadata parser for yum
 Name: yum-metadata-parser
 Version: 1.1.4
-Release: 3%{?dist}
+Release: 4%{?dist}
 Source0: http://linux.duke.edu/projects/yum/download/%{name}/%{name}-%{version}.tar.gz
 Patch0: BZ-612409-handle-2GB-rpms.patch
 License: GPLv2
@@ -47,6 +47,10 @@ Fast metadata parser for yum implemented in C.
 %{python_sitelib_platform}/*egg-info
 
 %changelog
+* Thu Feb 24 2011 James Antill <james at fedoraproject.org> 1.1.4-4
+- Really handle rpms that are over 2GB, in the .xml to .sqlite conversion.
+- Resolves: bz#612409
+
 * 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


More information about the scm-commits mailing list