Skip to content

Comments

Proprietary License support#698

Merged
jeremypw merged 14 commits intomasterfrom
proprietary-license
Apr 17, 2019
Merged

Proprietary License support#698
jeremypw merged 14 commits intomasterfrom
proprietary-license

Conversation

@cassidyjames
Copy link
Contributor

@cassidyjames cassidyjames commented Apr 27, 2018

Initial terrible LicenseRef-proprietary=url support

As reported at pop-os#72 and being discussed at ximion/appstream#107

Please send help 😜

@cassidyjames cassidyjames requested a review from a team April 11, 2019 23:47
@cassidyjames
Copy link
Contributor Author

This is going to become more important with #971, as Flatpaks do often have this format for proprietary licenses. An example (of many) is VS Code.

@cassidyjames
Copy link
Contributor Author

@donadigo and I chatted briefly. We'd really prefer the expected strings here be in the AppStream spec, as the linked issue mentions. For now, however, we can echo what GNOME Software does and ship the strings in AppCenter along with their translated strings.

case "public-domain":
// TRANSLATORS: See the Wikipedia page
license_copy = _("Public Domain");
if (license_url != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean to overwrite the url given in the project license?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I think this was intended to be == null

Copy link
Contributor

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments in the code, but seems to work OK using some dummy project_license strings.

@cassidyjames cassidyjames requested a review from jeremypw April 15, 2019 22:21
@jeremypw jeremypw merged commit 37ac146 into master Apr 17, 2019
@danirabbit danirabbit deleted the proprietary-license branch April 17, 2019 18:10
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.

3 participants