xbps-repo: fix genindex target to not return error when a package is already

registered in the index.
This commit is contained in:
Juan RP 2010-05-18 02:42:21 +02:00
parent 1fbc19959f
commit 754ec6ebb1

View File

@ -332,8 +332,10 @@ xbps_repo_genindex(const char *pkgdir)
} }
rv = xbps_repo_addpkg_index(idxdict, path, binfile); rv = xbps_repo_addpkg_index(idxdict, path, binfile);
free(binfile); free(binfile);
if (rv == EEXIST) if (rv == EEXIST) {
rv = 0;
continue; continue;
}
else if (rv != 0) { else if (rv != 0) {
(void)closedir(dirp); (void)closedir(dirp);
free(path); free(path);