diff --git a/bin/xbps-repo/index.c b/bin/xbps-repo/index.c index 069d7e9a..3201a420 100644 --- a/bin/xbps-repo/index.c +++ b/bin/xbps-repo/index.c @@ -332,8 +332,10 @@ xbps_repo_genindex(const char *pkgdir) } rv = xbps_repo_addpkg_index(idxdict, path, binfile); free(binfile); - if (rv == EEXIST) + if (rv == EEXIST) { + rv = 0; continue; + } else if (rv != 0) { (void)closedir(dirp); free(path);