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

Honor auto-import-gpg-keys flag on migration #271

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

mssola
Copy link
Contributor

@mssola mssola commented Oct 25, 2024

Description

The parsing of CLI arguments and how these are passed through the internal SCC client, zypper and other tools is not ideal and needs to be re-worked quite urgently. This is why other silly bugs have appeared in which we are not passing the correct arguments to our backend code.

Until this rework is not done, let's simply apply this quick fix which simply passes the --gpg-auto-import-keys flag to the zypper backend when finding product packages.

Fixes bsc#1231328

How to test

I have manually tested this code, but I still have to do an end to end test which considers the exact path as described in bsc#1231328.

Copy link
Contributor

@felixsch felixsch left a comment

Choose a reason for hiding this comment

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

lgtm 👍

How I reviewed this merge request:

  • Checked the code for potential improvements I would suggest
  • Ran a migration with enabled PackageHub from LTSS 15.3 and see it working

I saw it works fine also without --auto-import-gpg-key it will just interactively ask to import the key.
What I'm wondering the Bug sounds like they want it enabled by default and not only when you add --auto-import-gpg-key or?

Anyway, works fine for me

As always, if you think I missed something I should test, please let me know!🚀

cheer,s

The parsing of CLI arguments and how these are passed through the
internal SCC client, zypper and other tools is not ideal and needs to be
re-worked quite urgently. This is why other silly bugs have appeared in
which we are not passing the correct arguments to our backend code.

Until this rework is not done, let's simply apply this quick fix which
simply passes the `--gpg-auto-import-keys` flag to the zypper backend
when finding product packages.

Fixes bsc#1231328

Signed-off-by: Miquel Sabaté Solà <[email protected]>
@mssola
Copy link
Contributor Author

mssola commented Oct 28, 2024

What I'm wondering the Bug sounds like they want it enabled by default and not only when you add --auto-import-gpg-key or?

I'm not exactly sure about that. To me it sounds like they are just trying to perform the migration and it failed on both Yast and zypper migration. I belive that just giving them a clear answer to use this flag they'd be ok (or at least that's what I understood :D).

@mssola mssola merged commit ac20840 into main Oct 28, 2024
2 checks passed
@mssola mssola deleted the zypper-migration-bug branch October 28, 2024 13:41
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.

2 participants