xbps_repository_pool_init: do not fail to internalize all repos when the first one fails.
If the first registered repo couldn't be internalized, all other repositories were also failing because it returned error, so simply skip them and return error when all them cannot be internalized.
This commit is contained in:
@ -143,13 +143,14 @@ xbps_repository_pool_init(void)
|
|||||||
free(rpool->rpi);
|
free(rpool->rpi);
|
||||||
free(rpool);
|
free(rpool);
|
||||||
free(plist);
|
free(plist);
|
||||||
rv = errno;
|
|
||||||
if (errno == ENOENT) {
|
if (errno == ENOENT) {
|
||||||
|
errno = 0;
|
||||||
nmissing++;
|
nmissing++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
rv = errno;
|
||||||
xbps_dbg_printf("%s: cannot internalize plist %s: %s\n",
|
xbps_dbg_printf("%s: cannot internalize plist %s: %s\n",
|
||||||
__func__, plist, strerror(errno));
|
__func__, plist, strerror(rv));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
free(plist);
|
free(plist);
|
||||||
|
Reference in New Issue
Block a user