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

Replace PackageAI with Package references #820

Merged
merged 6 commits into from Jan 24, 2022
Merged

Conversation

imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Jan 21, 2022

Adapt AutoYaST to do not use the PackageAI module anymore. It should use the generic Package instead. See yast/yast-yast2#1219.

NOTE: tests are expected to fail until the yast/yast-yast2#1219 is merged.

@@ -151,12 +151,14 @@ def Import(settings)
to: "list <string>"
)

PackageAI.toinstall = settings.fetch("packages", [])
to_install = settings.fetch("packages", [])
PackagesProposal.AddResolvables("autoyast", :package, to_install) unless to_install.empty?
Copy link
Member

Choose a reason for hiding this comment

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

Is it AddResolvables or SetResolvables? Is expected to have more there?

Copy link
Contributor Author

@imobachgs imobachgs Jan 21, 2022

Choose a reason for hiding this comment

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

I preferred to be conservative and use AddResolvables, just in case for some reason we add more packages from a different place. In that case, the selection would be lost.

@kernel = settings.fetch("kernel", "")

addPostPackages(settings.fetch("post-packages", []))
AutoinstData.post_patterns = settings.fetch("post-patterns", [])
PackageAI.toremove = settings.fetch("remove-packages", [])
to_remove = settings.fetch("remove-packages", [])
PackagesProposal.AddTaboos("autoyast", :package, to_remove) unless to_remove.empty?
Copy link
Member

Choose a reason for hiding this comment

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

same here, Add or Set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same than above :-)

Copy link
Member

@jreidinger jreidinger left a comment

Choose a reason for hiding this comment

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

nothing critical

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 68.377% when pulling 1964681 on unify-package-rb into 9b52064 on master.

@imobachgs imobachgs merged commit 8753fbd into master Jan 24, 2022
@imobachgs imobachgs deleted the unify-package-rb branch January 24, 2022 09:04
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #222 successfully finished
✔️ Created OBS submit request #948344

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #134 successfully finished
✔️ Created IBS submit request #262963

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

4 participants