Skip to content

Commit

Permalink
Give a tip in case of size mismatch when fetching
Browse files Browse the repository at this point in the history
Fixes: #1802
  • Loading branch information
bapt committed Jan 24, 2020
1 parent 7427c41 commit 3b04262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libpkg/repo/binary/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ pkg_repo_binary_try_fetch(struct pkg_repo *repo, struct pkg *pkg,
if (stat(dest, &st) == -1 || pkg->pkgsize != st.st_size) {
if (already_tried) {
pkg_emit_error("cached package %s-%s: "
"size mismatch, cannot continue",
"size mismatch, cannot continue\n"
"Consider running 'pkg update -f'",
pkg->name, pkg->version);
retcode = EPKG_FATAL;
goto cleanup;
Expand Down

0 comments on commit 3b04262

Please sign in to comment.