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

Improved repository status tracking #973

Closed
3 tasks done
AMDmi3 opened this issue Jan 10, 2020 · 0 comments
Closed
3 tasks done

Improved repository status tracking #973

AMDmi3 opened this issue Jan 10, 2020 · 0 comments

Comments

@AMDmi3
Copy link
Member

AMDmi3 commented Jan 10, 2020

Currently repository status updates (new → active ↔ legacy) is not really tied to actual repository updates and thus not always correct. Improvement is needed, which may use the following logic: instead of deprecate_repositories+add_repositories in database_update_pre, compare list of repositories in the database with list of repositories from config. Added repositories are inserted with new status (and here we have chance to carefully choose unused ID and avoid problem with autoincremented smallint ID overflow), removed repositories are switched to legacy status. Then after updating packages, actual repositories are marked as active. This is also compatible with future per-repository updates.

While here, can also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant