Skip to content
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

Rename package.metadata.generate-rpm.repository to url #55

Merged
merged 1 commit into from Jan 29, 2023

Conversation

cat-in-136
Copy link
Owner

#54 introduced package.metadata.generate-rpm.repository to specify URL of the rpm file. But, "URL" is intended to store the URL of the package home page, not the repository URL. So, package.metadata.generate-rpm.repository should be renamed to package.metadata.generate-rpm.url.

Due to same reason, its fallback should be "package.homepage". package.repository should be also used for second fallback when neither package.metadata.generate-rpm.url nor package.homepage exists. Because today there is many projects where package.repository present but package.url not present.

…ack parameter package.metadata.generate-rpm.homepage to it.

The RPM variable "URL" is intended to store the URL of the package home page, not the repository URL. Therefore, the metadata key name is changed to "url" and set the fallback to "package.homepage" when the package key does not present. package.repository is also used for second fallback when neither package.metadata.generate-rpm.url nor package.homepage exists. Because today there is many projects where package.repository present but package.url not present.
@cat-in-136 cat-in-136 merged commit 25260d3 into master Jan 29, 2023
@cat-in-136 cat-in-136 deleted the not-repository-but-url-and-homepage branch January 29, 2023 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant