xbps-query(8): fix a segfault with -Rf if pkg is in repodata but not its binpkg.
This commit is contained in:
parent
89dd57e421
commit
35de44fcbd
5
NEWS
5
NEWS
@ -1,3 +1,8 @@
|
|||||||
|
xbps-0.37 (???):
|
||||||
|
|
||||||
|
* xbps-query(8): fixed a segfault with '-Rf' if pkg is in the repository data
|
||||||
|
and its binary package does not exist.
|
||||||
|
|
||||||
xbps-0.36 (2014-04-21):
|
xbps-0.36 (2014-04-21):
|
||||||
|
|
||||||
* libxbps: the dependency solver is now able to detect and ignore invalid
|
* libxbps: the dependency solver is now able to detect and ignore invalid
|
||||||
|
@ -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");
|
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",
|
fprintf(stderr, "Unexpected error: %s\n", strerror(errno));
|
||||||
strerror(errno));
|
|
||||||
return errno;
|
|
||||||
}
|
}
|
||||||
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
return show_pkg_files(pkgd);
|
return show_pkg_files(pkgd);
|
||||||
|
Loading…
Reference in New Issue
Block a user