summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-27 21:06:45 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-27 21:06:45 +0200
commita96572fba84573e81f6b363f1aee0243c7829729 (patch)
treee43c0e8729b0ab3c5625b9a96fca35839974b65c /src/database.c
parentf0609951b9fd2938c0f30853e0aa6b08b8698a88 (diff)
downloadapk-tools-a96572fba84573e81f6b363f1aee0243c7829729.tar.gz
apk-tools-a96572fba84573e81f6b363f1aee0243c7829729.tar.bz2
apk-tools-a96572fba84573e81f6b363f1aee0243c7829729.tar.xz
apk-tools-a96572fba84573e81f6b363f1aee0243c7829729.zip
db: compressed index file
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 0795a0b..13fc7b9 100644
--- a/src/database.c
+++ b/src/database.c
@@ -670,8 +670,8 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
.url = apk_blob_cstr(repository)
};
- snprintf(tmp, sizeof(tmp), "%s/APK_INDEX", db->repos[r].url);
- is = apk_istream_from_file(tmp);
+ snprintf(tmp, sizeof(tmp), "%s/APK_INDEX.gz", db->repos[r].url);
+ is = apk_istream_from_file_gz(tmp);
if (is == NULL) {
apk_error("Failed to open index file %s", tmp);
return -1;