-
Notifications
You must be signed in to change notification settings - Fork 11
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
configure: unindex removed packages #2
base: master
Are you sure you want to change the base?
Conversation
Perhaps instead of actually removing the Purging this |
Good idea, packages are now moved. Tested this only briefly today. |
2b531af
to
6e6f992
Compare
For packages reported by xbps-checkvers as removed, generated makefile finds files matching <pkgversion>.<arch>.xbps. This is needed to know where is repodata in which package is indexed (path may contain multilib, aarch64, nonfree subdirectories). Then, xbps-rindex is called to remove package from stage index. Then, xbps-repodb needs to remove package from public index when no other package depend on it. Finally, xbps-rindex -r will remove package file.
When package is updated and marked not to build on some architectures with archs/nocross/broken/restricted, it needs to be removed form repository.
For packages reported by xbps-checkvers as removed, generated makefile
finds files matching <pkgversion>.<arch>.xbps or
<pkgversion>.noarch.xbps. This is needed to know where is repodata in
which package is indexed (path may contain multilib, aarch64, nonfree
subdirectories). Then, xbps-rindex is called to remove package from
stage index. Then, xbps-repodb needs to remove package from public
index when no other package depend on it. Finally, xbps-rindex -r will
remove package file.
Tested with cross repository, multilib, removing of subpkg only.Requirement for present .xbps file means that to index already cleaned packages, they will need to be touched in repository.We do not use noarch anymore, one-time intervention for recreating still indexed noarch packages may be needed.
Requires void-linux/xbps#418, void-linux/void-infrastructure#125.