Skip to content

add support for gpgautoimport to refresh_db in the zypperpkg module - #62209

Merged
dwoz merged 10 commits into
saltstack:masterfrom
mcalmer:options-for-zypper-refresh
Dec 16, 2023
Merged

dwoz merged 10 commits into
saltstack:masterfrom
mcalmer:options-for-zypper-refresh

Conversation

@mcalmer

@mcalmer mcalmer commented Jun 23, 2022 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #42039

Previous Behavior

When using the zypper pkg module a refresh could never import GPG keys.

New Behavior

Now an option is available to enable autoimport of GPG keys. The default is still off

Merge requirements satisfied?

Commits signed with GPG?

No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@mcalmer
mcalmer requested a review from a team as a code owner June 23, 2022 08:47
@mcalmer
mcalmer requested review from waynew and removed request for a team June 23, 2022 08:47
@mcalmer
mcalmer force-pushed the options-for-zypper-refresh branch from 89f4c5c to 3eb2e76 Compare June 23, 2022 08:51

@vzhestkov vzhestkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've put some comments in the code

Comment thread salt/modules/zypperpkg.py Outdated
Comment thread salt/modules/zypperpkg.py Outdated
Comment thread salt/modules/zypperpkg.py Outdated
@mcalmer
mcalmer force-pushed the options-for-zypper-refresh branch 2 times, most recently from 77cb658 to 53aed44 Compare June 24, 2022 08:11
vzhestkov
vzhestkov previously approved these changes Jun 24, 2022

@vzhestkov vzhestkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good 👍 thanks for addressing the suggestions

@vzhestkov

Copy link
Copy Markdown
Contributor

@mcalmer there is a test failing tests.unit.modules.test_zypperpkg.ZypperTestCase.test_refresh_db, could you please fix it?

@mcalmer

mcalmer commented Jun 24, 2022

Copy link
Copy Markdown
Contributor Author

@vzhestkov should be fixed now

meaksh
meaksh previously approved these changes Jul 6, 2022
Comment thread salt/modules/zypperpkg.py Outdated
@mcalmer
mcalmer force-pushed the options-for-zypper-refresh branch from 8b7f7d3 to 3ff93f3 Compare July 11, 2022 09:03
meaksh
meaksh previously approved these changes Jul 11, 2022
meaksh
meaksh previously approved these changes Jan 11, 2023

@meaksh meaksh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just added some small comment about the "versionadded", other than that LGTM.

Comment thread salt/modules/zypperpkg.py Outdated
Comment thread salt/modules/zypperpkg.py Outdated
@mcalmer
mcalmer requested review from agraul and meaksh and removed request for agraul and waynew January 11, 2023 12:55
@mcalmer

mcalmer commented Jan 11, 2023

Copy link
Copy Markdown
Contributor Author

@waynew I clicked somehow at the wrong place and removed you from reviewers list. This is now a long time open and I think it should be merged now. Please have a look again. Thanks

@mcalmer
mcalmer temporarily deployed to ci September 23, 2023 09:39 — with GitHub Actions Inactive
@mcalmer
mcalmer temporarily deployed to ci September 23, 2023 09:53 — with GitHub Actions Inactive
@mcalmer
mcalmer temporarily deployed to ci September 23, 2023 09:59 — with GitHub Actions Inactive
@dwoz
dwoz merged commit 19a1edc into saltstack:master Dec 16, 2023
agraul pushed a commit to agraul/salt that referenced this pull request Jan 27, 2025
* add support for gpgautoimport to refresh_db in the zypperpkg module

* call refresh_db function from mod_repo

* call refresh_db with kwargs where possible

* ignore no repos defined exit code

* fix zypperpkg test after adding more success return codes

BACKPORT-UPSTREAM=saltstack#62209

This branch was previously deployed

1 inactive deployment
ci — b793657d Deployed Dec 11, 2023 by dwoz
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.

Can't auto-accept newly added repo's package signing key in SUSE.

6 participants