xbps-rindex: fixed writing repo index-files (regression added in e29f221
).
This commit is contained in:
parent
a0d50f542a
commit
3a5d6b1376
@ -68,7 +68,6 @@ index_add(struct xbps_handle *xhp, int argc, char **argv)
|
||||
free(tmprepodir);
|
||||
return -1;
|
||||
}
|
||||
free(tmprepodir);
|
||||
|
||||
if ((idx = prop_dictionary_internalize_from_zfile(plist)) == NULL) {
|
||||
if (errno != ENOENT) {
|
||||
@ -84,6 +83,8 @@ index_add(struct xbps_handle *xhp, int argc, char **argv)
|
||||
if ((plistf = xbps_pkg_index_files_plist(xhp, repodir)) == NULL)
|
||||
return -1;
|
||||
|
||||
free(tmprepodir);
|
||||
|
||||
if ((idxfiles = prop_dictionary_internalize_from_zfile(plistf)) == NULL) {
|
||||
if (errno != ENOENT) {
|
||||
fprintf(stderr, "index: cannot read `%s': %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user