summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index 36492a4..99ccaac 100644
--- a/src/database.c
+++ b/src/database.c
@@ -813,7 +813,7 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
};
snprintf(tmp, sizeof(tmp), "%s/APK_INDEX.gz", db->repos[r].url);
- is = apk_istream_from_file_gz(tmp);
+ is = apk_istream_from_url_gz(tmp);
if (is == NULL) {
apk_error("Failed to open index file %s", tmp);
return -1;