if (!quiet)
printf("Updating repository catalogue\n");
if(pkg_repos_total_count() == 0) {
fprintf(stderr, "No valid repository found.\n");
return (EPKG_FATAL);
}
while (pkg_repos(&r) == EPKG_OK) {
if (!pkg_repo_enabled(r))
continue;