WIP: add: __package_xbps #29

Draft
romain-dartigues wants to merge 1 commit from romain-dartigues/cdist-contrib:package-xbps into master
First-time contributor

Introduce support for XBPS, the void-linux package manager.

Notes

Unlike most of types (but __line), it provides a --onchange optional parameter ; useful for some cases such as:

# update the packages index when adding package adding a repository
__package_xbps void-repo-nonfree \
    --onchange 'xbps-install -Su'

# update the mirror when installing a package to handle mirrors
__package_xbps xmirror \
    --onchange 'xmirror -s https://mirror.puzzle.ch/voidlinux/'
Introduce support for [XBPS](https://docs.voidlinux.org/xbps/), the [void-linux](https://voidlinux.org/) package manager. ## Notes Unlike most of types (but `__line`), it provides a `--onchange` optional parameter ; useful for some cases such as: ```sh # update the packages index when adding package adding a repository __package_xbps void-repo-nonfree \ --onchange 'xbps-install -Su' # update the mirror when installing a package to handle mirrors __package_xbps xmirror \ --onchange 'xmirror -s https://mirror.puzzle.ch/voidlinux/' ```
romain-dartigues added 1 commit 2024-04-11 18:39:36 +00:00
Introduce support for XBPS, the void-linux package manager.
Collaborator

Why not submit this to the main cdist repository? It would make more sense to have package managers up there.

Why not submit this to the main cdist repository? It would make more sense to have package managers up there.
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u package-xbps:romain-dartigues-package-xbps
git checkout romain-dartigues-package-xbps

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout master
git merge --no-ff romain-dartigues-package-xbps
git checkout romain-dartigues-package-xbps
git rebase master
git checkout master
git merge --ff-only romain-dartigues-package-xbps
git checkout romain-dartigues-package-xbps
git rebase master
git checkout master
git merge --no-ff romain-dartigues-package-xbps
git checkout master
git merge --squash romain-dartigues-package-xbps
git checkout master
git merge --ff-only romain-dartigues-package-xbps
git checkout master
git merge romain-dartigues-package-xbps
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist-contrib#29
No description provided.