Skip to content

Commit 9cab8d6

Browse files
kevans91bapt
authored andcommitted
libpkg: bubble up EPKG_UPTODATE in pkg_repo_fetch_meta
If we were passed in a timestamp and the fetcher decided we're up to date, just bubble up the error. The caller should use whatever they already have. Signed-off-by: Kyle Evans <[email protected]>
1 parent 9f95fe9 commit 9cab8d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libpkg/pkg_repo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
793793
return (EPKG_FATAL);
794794
}
795795
goto load_meta;
796+
} else if (rc == EPKG_UPTODATE) {
797+
return (EPKG_UPTODATE);
796798
}
797799

798800
/* TODO: remove this backward compatibility some day */

0 commit comments

Comments
 (0)