[PR #5] [MERGED] License Handling #17

Closed
opened 2026-03-01 09:11:16 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosskers/cargo-aur/pull/5
Author: @fosskers
Created: 6/5/2021
Status: Merged
Merged: 6/7/2021
Merged by: @fosskers

Base: masterHead: colin/licenses


📝 Commits (10+)

  • 64acbe5 Add LICENSE
  • e1c9ff6 Remove anyhow
  • 6c40291 Output the conflicts field
  • 6dd2e4c Check for missing LICENSE
  • ffed75d Copy LICENSE file to tarball if it's there
  • b8e33de Only copy the LICENSE if we actually have to
  • 0ea8be5 Output progress messages
  • a676669 If a LICENSE must be copied, ensure it's there
  • 113a00c Install the LICENSE file if necessary
  • deb0768 Mention that the PKGBUILD is auto-generated

📊 Changes

5 files changed (+226 additions, -72 deletions)

View changed files

📝 CHANGELOG.md (+11 -0)
📝 Cargo.toml (+2 -2)
LICENSE (+21 -0)
src/error.rs (+48 -0)
📝 src/main.rs (+144 -70)

📄 Description

This PR adds support for LICENSE detection and automatic installation in the PKGBUILD.

TODO

  • Compare detected license with contents of /usr/share/licenses/common/ and install if not present.
  • Install LICENSE in PKGBUILD if present.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosskers/cargo-aur/pull/5 **Author:** [@fosskers](https://github.com/fosskers) **Created:** 6/5/2021 **Status:** ✅ Merged **Merged:** 6/7/2021 **Merged by:** [@fosskers](https://github.com/fosskers) **Base:** `master` ← **Head:** `colin/licenses` --- ### 📝 Commits (10+) - [`64acbe5`](https://github.com/fosskers/cargo-aur/commit/64acbe589a9298115444a3fbf6bb76cd4d2ed9d1) Add LICENSE - [`e1c9ff6`](https://github.com/fosskers/cargo-aur/commit/e1c9ff6fe13bdd6239137728c5bdb4343274024a) Remove `anyhow` - [`6c40291`](https://github.com/fosskers/cargo-aur/commit/6c40291afeeae3c501ddcb944f9729cb600fab36) Output the `conflicts` field - [`6dd2e4c`](https://github.com/fosskers/cargo-aur/commit/6dd2e4c67497e9aeb325d7a849d1029c4b355a6e) Check for missing LICENSE - [`ffed75d`](https://github.com/fosskers/cargo-aur/commit/ffed75dcb0f80e18c40976e9189b8ddaaf5c18d2) Copy `LICENSE` file to tarball if it's there - [`b8e33de`](https://github.com/fosskers/cargo-aur/commit/b8e33deed7040b77f244ac9f460128a45fb76f7f) Only copy the `LICENSE` if we actually have to - [`0ea8be5`](https://github.com/fosskers/cargo-aur/commit/0ea8be5a7308122bbd5b70f115aa72f1141381cf) Output progress messages - [`a676669`](https://github.com/fosskers/cargo-aur/commit/a676669e63b720b00cb4a02e27595d7eadddb527) If a `LICENSE` must be copied, ensure it's there - [`113a00c`](https://github.com/fosskers/cargo-aur/commit/113a00c206283da326171221295da1dd094c158e) Install the LICENSE file if necessary - [`deb0768`](https://github.com/fosskers/cargo-aur/commit/deb0768f3be1d2a9aaabcc50f8e6899699ea17e1) Mention that the PKGBUILD is auto-generated ### 📊 Changes **5 files changed** (+226 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+11 -0) 📝 `Cargo.toml` (+2 -2) ➕ `LICENSE` (+21 -0) ➕ `src/error.rs` (+48 -0) 📝 `src/main.rs` (+144 -70) </details> ### 📄 Description This PR adds support for `LICENSE` detection and automatic installation in the `PKGBUILD`. ### TODO - [x] Compare detected license with contents of `/usr/share/licenses/common/` and install if not present. - [x] Install `LICENSE` in `PKGBUILD` if present. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-01 09:11:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cargo-aur#17