feat: support backup packaging function#31
Open
sjugge wants to merge 1 commit intofosskers:masterfrom
Open
Conversation
Owner
|
Thanks for this, I'll review as soon as I'm able. Note that there will likely be some merge conflicts once #30 goes in. |
Author
|
Should #30 get merged before this PR I'll revisit and adapt as needed, nw. |
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.

This PR adds support for the
backuppackaging function.rationale
Additional files can be included, which may be user-modified configuration files. As-is, a package build using
cargo-aurwill overwrite any user-made changes to files that are contained in the package.With this feature, files can be defined which may be user-modified. If a file is user-modified, the packaged file will be added as .pacnew and not overwrite any changes made by the user.
If a package is removed, and any packaged file is user-modified, a .pacsave file will be retained.
implementation
I extended the existing
[package.metadata.aur]approach as to not get in the way of Cargo's default[package]and took a similar approach as to how thepackage()section is built up. This does duplicate that logic somewhat, but I suspect there may be other package functions that could piggy back of this approach in the future should there be a need for them.I added relevant information in terms of usage in the README.