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:
parent
b90c815e80
commit
032f993a53
@ -143,13 +143,14 @@ xbps_repository_pool_init(void)
|
||||
free(rpool->rpi);
|
||||
free(rpool);
|
||||
free(plist);
|
||||
rv = errno;
|
||||
if (errno == ENOENT) {
|
||||
errno = 0;
|
||||
nmissing++;
|
||||
continue;
|
||||
}
|
||||
rv = errno;
|
||||
xbps_dbg_printf("%s: cannot internalize plist %s: %s\n",
|
||||
__func__, plist, strerror(errno));
|
||||
__func__, plist, strerror(rv));
|
||||
goto out;
|
||||
}
|
||||
free(plist);
|
||||
|
Loading…
Reference in New Issue
Block a user