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

support reading licenses from tar archive (jsc#SLE-7214) #958

Merged
merged 8 commits into from Sep 10, 2019
Merged

Conversation

wfeldt
Copy link
Member

@wfeldt wfeldt commented Sep 5, 2019

Task

Support reading licenses from a tar archive in the repository.

Plus quite some license fetcher refactoring:

  • rpm and tar share the same basics
  • license archive is now fetched only once and then cached
  • moved #confirmation_required? from LicensesHandlers to LicensesFetchers

See also

This is based on @lslezak's work in

https://github.com/yast/yast-yast2/compare/new_media

Todo

  • unit tests ✔️
  • rubocop ✔️
  • integration tests ✔️
  • proper yardoc comments ✔️

@coveralls
Copy link

coveralls commented Sep 5, 2019

Coverage Status

Coverage increased (+0.09%) to 28.718% when pulling 0e5038a on sw_09 into c187761 on master.

@lslezak
Copy link
Member

lslezak commented Sep 9, 2019

Code-wise LGTM, I'll test it in the patched online installer medium...

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.

Tested in the latest OnlineOnly, works fine, the licenses are properly displayed. 👍

Thanks!

They are just a repackaged version of the rpm test data.
It's basically looking for a special file in the license archive. Thus it's
more similar to the other fetcher methods and can profit from the cached
license archive in LicensesFetchers.
@yast-bot
Copy link
Contributor

❌ Public Jenkins job #127 failed

@yast-bot
Copy link
Contributor

❌ Internal Jenkins job #27 failed

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