diff options
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; |