-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add YaST integration #79
Conversation
b647173
to
891833b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some questions. I still need to test from yast. Thanks for improving the Ruby side of this.
501806b
to
2783e38
Compare
rebased |
7576c92
to
1023a23
Compare
27bd45a
to
c4b6c29
Compare
0eea901
to
7bb214d
Compare
4b90432
to
0d88c12
Compare
0d88c12
to
675fdeb
Compare
rebased to get package search in |
Some additional mapping of Go SSL errors to OpenSSL ones expected by YaST. This should correctly trigger custom dialogs implemented in YaST registration and enable automatic import functions for untrusted certs.
Added handling for JSON, Net and Timeout errors expected by YaST.
To avoid redundant implementation of execute(), calling update-ca-certificates was delegated to Go.
Also extend Repo structure with all fields from API docs. Add release_type to Product.toQuery() to match original.
Some Unmarshal() calls didn't have the error wrapped correctly.
Is-Base product information is handled differently in different contexts. Extended unmarshaler joins information from different sources into one attribute. Default "isbase" is reserved for YaST integration to match original.
Exported missing function required for migration scenario. Also added "shortname" attribute to Product as it's used in the YaST UI.
Some debug messages from config parsing were not forwarded to YaST logger.
Fixed crash when using uninitialized logger function. Also restored original Logger mixin to make it easier to use logging in the shim.
SSLCertificate uses only class methods so it requires extend instead of include for mixins to work correctly.
Added Dockerfile which can be used to run original yast-registration tests with libsuseconnect and shim injected. Modified curlrc handling to match original behavior of ignoring errors.
RPM spec file was updated to build libsuseconnect and suseconnect-ruby-bindings subpackages. In addition spec file got some minor cleanups and tweaks.
Shared library needs the same dependencies as CLI and while it doesn't require the CLI iteself it's easier to "Requires" suseconnect-ng to get all dependencies indirectly. Additional benefit is that suseconnect-ng will always be installed when switching from old (Ruby) version to the new one.
5df8730
to
aa47edd
Compare
rebased to pull package-search in |
e55f4d9
to
b656086
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only checked the spec file, Makefile, and Dockerfiles. Those look good.
No description provided.