xbps_repository_pool_init: check repo arch before plist access(2), faster.
This commit is contained in:
parent
939e2c2417
commit
8fd5253e31
@ -104,6 +104,15 @@ xbps_repository_pool_init(const struct xbps_handle *xhp)
|
||||
continue;
|
||||
|
||||
ntotal++;
|
||||
/*
|
||||
* Check if repository doesn't match our architecture.
|
||||
*/
|
||||
if (!check_repo_arch(repouri)) {
|
||||
xbps_dbg_printf("[rpool] `%s' arch not matched, "
|
||||
"ignoring.\n", repouri);
|
||||
nmissing++;
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* If index file is not there, skip.
|
||||
*/
|
||||
@ -119,16 +128,6 @@ xbps_repository_pool_init(const struct xbps_handle *xhp)
|
||||
nmissing++;
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* Check if repository doesn't match our architecture.
|
||||
*/
|
||||
if (!check_repo_arch(repouri)) {
|
||||
xbps_dbg_printf("[rpool] `%s' arch not matched, "
|
||||
"ignoring.\n", repouri);
|
||||
free(plist);
|
||||
nmissing++;
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* Internalize repository's index dictionary and add it
|
||||
* into the queue.
|
||||
|
Loading…
Reference in New Issue
Block a user