Skip to content

Commit

Permalink
Fix comparison logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 16, 2024
1 parent 9adc028 commit b125861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpkg/pkgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ pkgdb_access(unsigned mode, unsigned database, ...)
retval = r->ops->access(r, mode);
if (retval != EPKG_OK) {
if (retval == EPKG_ENODB &&
!(mode & PKGDB_MODE_READ)) {
(mode & PKGDB_MODE_READ) != PKGDB_MODE_READ) {
pkg_emit_error("Repository %s missing."
" 'pkg update' required",
r->name);
Expand Down

0 comments on commit b125861

Please sign in to comment.