Skip to content
Snippets Groups Projects
Commit 82713dc3 authored by Timo Teräs's avatar Timo Teräs
Browse files

db: unconditionally refresh index with --force

parent 38e3f546
No related branches found
No related tags found
No related merge requests found
......@@ -624,7 +624,9 @@ int apk_cache_download(struct apk_database *db, struct apk_repository *repo,
r = apk_repo_format_real_url(db, repo, pkg, url, sizeof(url));
if (r < 0) return r;
if (fstatat(db->cache_fd, cacheitem, &st, 0) != 0) st.st_mtime = 0;
if ((apk_flags & APK_FORCE) ||
fstatat(db->cache_fd, cacheitem, &st, 0) != 0)
st.st_mtime = 0;
apk_message("fetch %s", url);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment