summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-04-10 22:59:43 +0300
committerTimo Teräs <timo.teras@iki.fi>2023-04-10 22:59:43 +0300
commit701c1279050f4cfd6752b816b8aa125ccab109fc (patch)
tree3f348f59fb3a2f550e50c45c3ffc3ddf57a1095c
parent836341fcf0ff8ce2eb641a1b648af4066952b2cb (diff)
downloadapk-tools-701c1279050f4cfd6752b816b8aa125ccab109fc.tar.gz
apk-tools-701c1279050f4cfd6752b816b8aa125ccab109fc.tar.bz2
apk-tools-701c1279050f4cfd6752b816b8aa125ccab109fc.tar.xz
apk-tools-701c1279050f4cfd6752b816b8aa125ccab109fc.zip
db: fix inadvertent change to add_repos_from_file()
fixes commit 6ded6978 "io: make apk_blob_from_* return error"
-rw-r--r--src/database.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/database.c b/src/database.c
index 6eca81e..75ef611 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1400,9 +1400,6 @@ static int add_repos_from_file(void *ctx, int dirfd, const char *file)
return 0;
}
- if (!file_ends_with_dot_list(file))
- return 0;
-
if (apk_blob_from_file(dirfd, file, &blob)) {
if (dirfd != AT_FDCWD) return 0;
apk_err(out, "failed to read repositories: %s", file);