Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui:Fix index error for _remove_treeinfo_repositories() #5516

Closed

Conversation

WizardHowlhaha
Copy link

The _remove_treeinfo_repositories() try to remove treeinfo repositories from _repo_store[],the index 'path' is saved in removal_repo_list[] and arranged in order.

The problem is that _remove_repository(path) will remove the previous repositories,and the subsequent loops will get a wrong index for _repo_store[].

Fix it by reversing the removal_repo_list[], to secure previous repositories will not be removed before _remove_repository().

The _remove_treeinfo_repositories() try to remove treeinfo
repositories from _repo_store[],the index 'path' is saved in
removal_repo_list[] and arranged in order.

The problem is that _remove_repository(path) will remove the
previous repositories,and the subsequent loops will get a
wrong index for _repo_store[].

Fix it by reversing the removal_repo_list[], to secure previous repositories
will not be removed before _remove_repository().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant