xbps_rpool_init: relax an assertion and skip invalid repos gracefully.
This commit is contained in:
parent
2c1e4e502d
commit
3e3073e44c
@ -76,7 +76,12 @@ xbps_rpool_init(struct xbps_handle *xhp)
|
|||||||
}
|
}
|
||||||
repod = prop_dictionary_internalize_from_zfile(plist);
|
repod = prop_dictionary_internalize_from_zfile(plist);
|
||||||
free(plist);
|
free(plist);
|
||||||
assert(repod);
|
if (prop_object_type(repod) != PROP_TYPE_DICTIONARY) {
|
||||||
|
xbps_dbg_printf(xhp, "[rpool] `%s' cannot be "
|
||||||
|
"internalized: %s\n", repouri, strerror(errno));
|
||||||
|
nmissing++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Register repository into the array.
|
* Register repository into the array.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user