Skip to content

Conversation

@jreidinger
Copy link
Contributor

Adapt autoyast conversion to new extraRepositories implemented at #2424

@coveralls
Copy link

coveralls commented Jun 10, 2025

Coverage Status

coverage: 62.607% (+0.03%) from 62.58%
when pulling 25e70d8 on user_repo_ay_convert
into d02c3bb on master.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

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

Implementation-wise, I don't have strong opinions. The code looks solid and appears thoroughly tested. Approving it.

software["packages"] = profile["software"].fetch_as_array("packages")
end
if profile["add-on"]
repos = process_repos
Copy link
Contributor

Choose a reason for hiding this comment

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

NP: I do not know if that logic should live here. A bit disconnected of that part currently. But I'd at least rename it to fecth_addon_repos to make it more readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, idea of method is to translate autoyast entries into agama profile ones...not sure if fetch is the right verb for it

res = {}
res["url"] = repo["media_url"]
# alias is mandatory to craft one if needed
res["alias"] = repo["alias"] || "autoyast_#{index}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: we will sill using "autoyast" naming?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, it is conversion from autoyast profile. But we can name it whatever we want...I am just not sure about better name

Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

I miss a changelog entry.

end

context "when a list of add-ons are provided" do
it "includes the list of repositoriess under 'software.extraRepositories'" do
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: repositoriess

Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

LGTM

@jreidinger jreidinger merged commit abd8552 into master Jun 11, 2025
25 checks passed
@jreidinger jreidinger deleted the user_repo_ay_convert branch June 11, 2025 08:44
@imobachgs imobachgs mentioned this pull request Jun 30, 2025
imobachgs added a commit that referenced this pull request Jun 30, 2025
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.

5 participants