diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-11-27 21:06:45 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-11-27 21:06:45 +0200 |
commit | a96572fba84573e81f6b363f1aee0243c7829729 (patch) | |
tree | e43c0e8729b0ab3c5625b9a96fca35839974b65c /src/database.c | |
parent | f0609951b9fd2938c0f30853e0aa6b08b8698a88 (diff) | |
download | apk-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.c | 4 |
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; |