xbps-repo: fix genindex target to not return error when a package is already
registered in the index.
This commit is contained in:
parent
1fbc19959f
commit
754ec6ebb1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user