}
-void
+int
repo_add_releasefile_products(Repo *repo, const char *dirpath, int flags)
{
DIR *dir;
dir = opendir(dirpath);
if (!dir)
- return;
+ return 0;
while ((entry = readdir(dir)))
{
if (!(flags & REPO_NO_INTERNALIZE) && (flags & REPO_REUSE_REPODATA) != 0)
repodata_internalize(repo_last_repodata(repo));
+ return 0;
}