Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
DB: loudly complain if the DB cannot be opened
Baptiste Daroussin committed 1 month ago
commit 63c7804a77d87697cdbc6065608fa3a63944ae91
parent fcfe2f6bc2552064f2177a3e5f845f60752d0cfa
1 file changed +4 -1
modified libpkg/pkgdb.c
@@ -760,8 +760,11 @@ out:
			return (EPKG_ENODB);
		else if (errno == EACCES || errno == EROFS)
			return (EPKG_ENOACCESS);
-
		else
+
		else {
+
			pkg_emit_errno("Cannot access database",
+
			    dbpath);
			return (EPKG_FATAL);
+
		}
	}

	return (EPKG_OK);