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 764e839 commit b873684
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 @@ -804,7 +804,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 b873684

Please sign in to comment.