configure: unindex removed packages#2
Draft
Chocimier wants to merge 8 commits intovoid-linux:masterfrom
Draft
Conversation
Member
|
Perhaps instead of actually removing the Purging this |
Member
Author
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.