lib/pkgdb.c: print to stderr a meaningful msg on error.

This commit is contained in:
Juan RP 2013-01-15 13:14:30 +01:00
parent 71430b1566
commit 3139f822da

View File

@ -109,6 +109,8 @@ xbps_pkgdb_update(struct xbps_handle *xhp, bool flush)
if ((xhp->pkgdb = prop_array_internalize_from_zfile(plist)) == NULL) { if ((xhp->pkgdb = prop_array_internalize_from_zfile(plist)) == NULL) {
if (errno == ENOENT) if (errno == ENOENT)
xhp->pkgdb = prop_array_create(); xhp->pkgdb = prop_array_create();
else
xbps_error_printf("cannot access to pkgdb: %s\n", strerror(errno));
cached_rv = rv = errno; cached_rv = rv = errno;
} }