From 33fbe8a5ef96b155858041a33530321a02edd93c Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 27 May 2019 12:39:28 +0200 Subject: [PATCH] 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. --- lib/package_fulldeptree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/package_fulldeptree.c b/lib/package_fulldeptree.c index 479c9307..30a6bd04 100644 --- a/lib/package_fulldeptree.c +++ b/lib/package_fulldeptree.c @@ -152,6 +152,9 @@ ordered_depends(struct xbps_handle *xhp, xbps_dictionary_t pkgd, bool rpool) } else { if ((curpkgd = xbps_pkgdb_get_pkg(xhp, curdep)) == NULL) curpkgd = xbps_pkgdb_get_virtualpkg(xhp, curdep); + /* Ignore missing local runtime dependencies, because ignorepkg */ + if (curpkgd == NULL) + continue; } assert(curpkgd); if ((curdepname = xbps_pkgpattern_name(curdep)) == NULL)