xbps-query(8): fix a segfault with -Rf if pkg is in repodata but not its binpkg.
This commit is contained in:
@@ -308,10 +308,9 @@ repo_show_pkg_files(struct xbps_handle *xhp, const char *pkg)
|
||||
pkgd = xbps_rpool_get_pkg_plist(xhp, pkg, "./files.plist");
|
||||
if (pkgd == NULL) {
|
||||
if (errno != ENOTSUP && errno != ENOENT) {
|
||||
fprintf(stderr, "Unexpected error: %s\n",
|
||||
strerror(errno));
|
||||
return errno;
|
||||
fprintf(stderr, "Unexpected error: %s\n", strerror(errno));
|
||||
}
|
||||
return errno;
|
||||
}
|
||||
|
||||
return show_pkg_files(pkgd);
|
||||
|
Reference in New Issue
Block a user