Skip to content

Commit 4710ee0

Browse files
committed
bin/xbps-rindex: fix -c possibily merging the index and stage
when a package was removed while the repoistory was staged it would write the merged index+stage into to the repository datas index while also keeping the repository staged. This is fixed by operating on the index without the stage. (maybe should have more clear variable names than idx and index)
1 parent 71c6721 commit 4710ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/xbps-rindex/index-clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ cleanup_repo(struct xbps_handle *xhp, const char *repodir, struct xbps_repo *rep
114114
/*
115115
* First pass: find out obsolete entries on index and index-files.
116116
*/
117-
index = xbps_dictionary_copy_mutable(repo->idx);
117+
index = xbps_dictionary_copy_mutable(repo->index);
118118
stage = xbps_dictionary_copy_mutable(repo->stage);
119119

120120
allkeys = xbps_dictionary_all_keys(index);

0 commit comments

Comments
 (0)