Skip to content

Commit

Permalink
Merge pull request #386 from cgwalters/usr-sqlite
Browse files Browse the repository at this point in the history
rpmdb: Also detect rpmdb.sqlite in /usr/share/rpm
  • Loading branch information
mlschroe authored May 26, 2020
2 parents c32a18c + 00f2815 commit d51e02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/repo_rpmdb_librpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static void
detect_dbpath(struct rpmdbstate *state)
{
state->dbpath = access_rootdir(state, "/var/lib/rpm", W_OK) == -1
&& access_rootdir(state, "/usr/share/rpm/Packages", R_OK) == 0
&& (access_rootdir(state, "/usr/share/rpm/Packages", R_OK) == 0 || access_rootdir(state, "/usr/share/rpm/rpmdb.sqlite", R_OK) == 0)
? "/usr/share/rpm" : "/var/lib/rpm";
}

Expand Down

0 comments on commit d51e02f

Please sign in to comment.