fulldeptree: replace another assert() with proper return code.
Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
parent
a9a889c54d
commit
271601dd0e
@ -177,6 +177,12 @@ ordered_depends(struct xbps_handle *xhp, xbps_dictionary_t pkgd, bool rpool)
|
|||||||
if (xitem == NULL)
|
if (xitem == NULL)
|
||||||
xitem = ordered_depends(xhp, curpkgd, rpool);
|
xitem = ordered_depends(xhp, curpkgd, rpool);
|
||||||
|
|
||||||
|
if (xitem == NULL) {
|
||||||
|
/* package depends on missing dependencies */
|
||||||
|
xbps_dbg_printf(xhp, "%s: missing dependency '%s'\n", pkgver, curdep);
|
||||||
|
errno = ENODEV;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
assert(xitem);
|
assert(xitem);
|
||||||
addDepn(item, xitem);
|
addDepn(item, xitem);
|
||||||
free(curdepname);
|
free(curdepname);
|
||||||
|
Loading…
Reference in New Issue
Block a user