|
|
b605cf |
commit 2d8499cf272bf9027d015fae0d344998debfae69
|
|
|
b605cf |
Author: James Antill <james@and.org>
|
|
|
b605cf |
Date: Sat Aug 21 18:26:33 2010 -0400
|
|
|
b605cf |
|
|
|
b605cf |
Handle > 2GB sized rpms, in XML => sqlite conversion, BZ 612409.
|
|
|
b605cf |
|
|
|
b605cf |
diff --git a/db.c b/db.c
|
|
|
b605cf |
index 4d49595..80f87af 100644
|
|
|
b605cf |
--- a/db.c
|
|
|
b605cf |
+++ b/db.c
|
|
|
b605cf |
@@ -550,9 +550,9 @@ yum_db_package_write (sqlite3 *db, sqlite3_stmt *handle, Package *p)
|
|
|
b605cf |
sqlite3_bind_int (handle, 17, p->rpm_header_start);
|
|
|
b605cf |
sqlite3_bind_int (handle, 18, p->rpm_header_end);
|
|
|
b605cf |
sqlite3_bind_text (handle, 19, p->rpm_packager, -1, SQLITE_STATIC);
|
|
|
b605cf |
- sqlite3_bind_int (handle, 20, p->size_package);
|
|
|
b605cf |
- sqlite3_bind_int (handle, 21, p->size_installed);
|
|
|
b605cf |
- sqlite3_bind_int (handle, 22, p->size_archive);
|
|
|
b605cf |
+ sqlite3_bind_int64 (handle, 20, p->size_package);
|
|
|
b605cf |
+ sqlite3_bind_int64 (handle, 21, p->size_installed);
|
|
|
b605cf |
+ sqlite3_bind_int64 (handle, 22, p->size_archive);
|
|
|
b605cf |
sqlite3_bind_text (handle, 23, p->location_href, -1, SQLITE_STATIC);
|
|
|
b605cf |
sqlite3_bind_text (handle, 24, p->location_base, -1, SQLITE_STATIC);
|
|
|
b605cf |
sqlite3_bind_text (handle, 25, p->checksum_type, -1, SQLITE_STATIC);
|
|
|
b605cf |
commit ffdcc0bf2bc9abc1f36f47378128af9afe2134e9
|
|
|
b605cf |
Author: James Antill <james@and.org>
|
|
|
b605cf |
Date: Thu Feb 24 11:18:54 2011 -0500
|
|
|
b605cf |
|
|
|
b605cf |
Change the conversion to be 64bit safe too, *sigh*. BZ 612409
|
|
|
b605cf |
|
|
|
b605cf |
diff --git a/xml-parser.c b/xml-parser.c
|
|
|
b605cf |
index 9617d17..35f04e6 100644
|
|
|
b605cf |
--- a/xml-parser.c
|
|
|
b605cf |
+++ b/xml-parser.c
|
|
|
b605cf |
@@ -185,11 +185,11 @@ primary_parser_package_start (PrimarySAXContext *ctx,
|
|
|
b605cf |
value = attrs[++i];
|
|
|
b605cf |
|
|
|
b605cf |
if (!strcmp (attr, "package"))
|
|
|
b605cf |
- p->size_package = strtol(value, NULL, 10);
|
|
|
b605cf |
+ p->size_package = strtoll(value, NULL, 10);
|
|
|
b605cf |
else if (!strcmp (attr, "installed"))
|
|
|
b605cf |
- p->size_installed = strtol(value, NULL, 10);
|
|
|
b605cf |
+ p->size_installed = strtoll(value, NULL, 10);
|
|
|
b605cf |
else if (!strcmp (attr, "archive"))
|
|
|
b605cf |
- p->size_archive = strtol(value, NULL, 10);
|
|
|
b605cf |
+ p->size_archive = strtoll(value, NULL, 10);
|
|
|
b605cf |
}
|
|
|
b605cf |
}
|
|
|
b605cf |
|