/* no luck. print an error message in case the root argument is wrong */
perror(fullpath);
join_freemem();
+
+ /* the least we can do... */
+ if (!(flags & REPO_NO_INTERNALIZE) && (flags & REPO_REUSE_REPODATA) != 0)
+ repodata_internalize(repo_last_repodata(repo));
}
/* EOF */
closedir(dir);
join_freemem();
- if (!(flags & REPO_NO_INTERNALIZE))
- {
- if (!(flags & REPO_REUSE_REPODATA))
- {
- Repodata *data = repo_add_repodata(repo, 0);
- repodata_internalize(data);
- }
- }
+ if (!(flags & REPO_NO_INTERNALIZE) && (flags & REPO_REUSE_REPODATA) != 0)
+ repodata_internalize(repo_last_repodata(repo));
}