fulldeptree: ignore missing local runtime dependencies

They most likely come from `ignorepkg` and without this patch
operations xbps-remove -R aborts if a dependency was ignored
at install time.
This commit is contained in:
Duncaen 2019-05-27 12:39:28 +02:00
parent 67badf983b
commit 33fbe8a5ef

View File

@ -152,6 +152,9 @@ ordered_depends(struct xbps_handle *xhp, xbps_dictionary_t pkgd, bool rpool)
} else { } else {
if ((curpkgd = xbps_pkgdb_get_pkg(xhp, curdep)) == NULL) if ((curpkgd = xbps_pkgdb_get_pkg(xhp, curdep)) == NULL)
curpkgd = xbps_pkgdb_get_virtualpkg(xhp, curdep); curpkgd = xbps_pkgdb_get_virtualpkg(xhp, curdep);
/* Ignore missing local runtime dependencies, because ignorepkg */
if (curpkgd == NULL)
continue;
} }
assert(curpkgd); assert(curpkgd);
if ((curdepname = xbps_pkgpattern_name(curdep)) == NULL) if ((curdepname = xbps_pkgpattern_name(curdep)) == NULL)