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

Supplement changes from YCC #148

Merged
merged 2 commits into from
Oct 4, 2020
Merged

Supplement changes from YCC #148

merged 2 commits into from
Oct 4, 2020

Conversation

hellcp
Copy link
Contributor

@hellcp hellcp commented Jan 28, 2020

Continuation to yast/yast-control-center#43
Appstream builder now has to be able to find the .desktop version of ycc and other modules. It also rejects anything containing the listed categories.

Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

Please add also changes (including a bugzilla number if possible) and bump the package version.

@@ -60,7 +60,8 @@ def metainfo_gen(desktop, license, url, version)
name.add_attribute("xml:lang", lang) if lang
end
cat = base.add_element("categories")
data["Categories"].split(";").each do |category|
rejected_categories = ["Settings", "ConsoleOnly", "DesktopSettings"]
data["Categories"].split(";").reject{ |c| rejected_categories.include?(c) }.each do |category|
Copy link
Member

Choose a reason for hiding this comment

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

Maybe

rejected_categories = ["Settings", "ConsoleOnly", "DesktopSettings"]
categories = data["Categories"].split(";") - rejected_categories
categories.each do |category|

would be a bit more readable...

@jreidinger
Copy link
Member

I will add changelog and bump version in separate PR and merge this one.

@jreidinger jreidinger merged commit a5fdc8d into yast:master Oct 4, 2020
@yast-bot
Copy link
Contributor

yast-bot commented Oct 4, 2020

✔️ Public Jenkins job #19 successfully finished

@jreidinger jreidinger mentioned this pull request Oct 4, 2020
@yast-bot
Copy link
Contributor

yast-bot commented Oct 4, 2020

✔️ Internal Jenkins job #9 successfully finished

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.

4 participants