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:
Juan RP 2011-02-17 09:24:57 +01:00
parent b90c815e80
commit 032f993a53

View File

@ -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);