Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Better error message in case we can't create local database
Baptiste Daroussin committed 14 years ago
commit 376d29d10d428c3c0cde96193e86da6f53c7b39c
parent 2510a3984a327ade0aca4af2344c25b70a14ff8f
1 file changed +2 -2
modified libpkg/pkgdb.c
@@ -459,12 +459,12 @@ pkgdb_open(struct pkgdb **db_p, pkgdb_t type)

	if (eaccess(localpath, R_OK) != 0) {
		if (errno != ENOENT) {
-
			pkg_emit_errno("access", localpath);
+
			pkg_emit_errno("Unable to create local database ", localpath);
			pkgdb_close(db);
			return (EPKG_FATAL);
		} else if (eaccess(dbdir, W_OK) != 0) {
			/* If we need to create the db but can not write to it, fail early */
-
			pkg_emit_errno("eaccess", dbdir);
+
			pkg_emit_errno("Unable to create local database ", dbdir);
			pkgdb_close(db);
			return (EPKG_FATAL);
		} else {