xbps-query: unbreak -f/--files mode.

This commit is contained in:
Juan RP 2014-11-17 16:10:55 +01:00
parent a6516505e9
commit db14524cf3

View File

@ -337,7 +337,7 @@ repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
{ {
xbps_dictionary_t pkgd; xbps_dictionary_t pkgd;
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "./files.plist"); pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "/files.plist");
if (pkgd == NULL) { if (pkgd == NULL) {
if (errno != ENOTSUP && errno != ENOENT) { if (errno != ENOTSUP && errno != ENOENT) {
fprintf(stderr, "Unexpected error: %s\n", strerror(errno)); fprintf(stderr, "Unexpected error: %s\n", strerror(errno));