xbps-repo: fix the 'genindex' target due to 0.7.0 API changes.
This commit is contained in:
parent
e6503b98cc
commit
b017f6d024
@ -150,7 +150,7 @@ xbps_repo_addpkg_index(prop_dictionary_t idxdict, const char *filedir,
|
|||||||
}
|
}
|
||||||
if (remove(oldfilepath) == -1) {
|
if (remove(oldfilepath) == -1) {
|
||||||
fprintf(stderr, "E: Couldn't remove old package file "
|
fprintf(stderr, "E: Couldn't remove old package file "
|
||||||
"'%s'!\n", oldfilen);
|
"'%s'! (%s)\n", oldfilepath, strerror(errno));
|
||||||
free(oldfilepath);
|
free(oldfilepath);
|
||||||
prop_object_release(newpkgd);
|
prop_object_release(newpkgd);
|
||||||
rv = errno;
|
rv = errno;
|
||||||
@ -163,8 +163,9 @@ xbps_repo_addpkg_index(prop_dictionary_t idxdict, const char *filedir,
|
|||||||
rv = errno;
|
rv = errno;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if ((rv = xbps_remove_pkg_from_dict(idxdict,
|
if (!xbps_remove_pkg_from_dict(idxdict, "packages", pkgname)) {
|
||||||
"packages", pkgname)) != 0) {
|
fprintf(stderr, "E: couldn't remove %s dict from "
|
||||||
|
"index (%s)\n", pkgname, strerror(errno));
|
||||||
prop_object_release(newpkgd);
|
prop_object_release(newpkgd);
|
||||||
free(tmpstr);
|
free(tmpstr);
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user