Skip to content

Added support for alts alternatives#29

Merged
lslezak merged 2 commits into
masterfrom
alts-alternatives
Jun 30, 2026
Merged

Added support for alts alternatives#29
lslezak merged 2 commits into
masterfrom
alts-alternatives

Conversation

@lslezak

@lslezak lslezak commented Jun 30, 2026

Copy link
Copy Markdown
Member

Problem

Details

  • The problem is that openSUSE Tumbleweed uses newer alts instead of the old update-alternatives.

Solution

  • If querying update-alternatives fails then try using the new alts.

Notes

  • A have added the .editorconfig file with the same formatting as in Agama
  • Reformatted the script

Testing

  • Tested manually

Comment thread package/Dockerfile

# do not install the files marked as documentation (use "rpm --excludedocs")
RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf
RUN zypper --non-interactive install --no-recommends zypp-excludedocs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just curious, where did you find out about zypp-exludedocs.rpm?

@lslezak lslezak Jun 30, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In some bug where we discussed setting the "no-recommends" option in Agama with the libzypp team. JFYI there is also zypp-no-recommends package and some more.

@joseivanlopez joseivanlopez left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@mvidner mvidner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Please mention this in the merge commit message: (and/or any better context docs)

https://en.opensuse.org/openSUSE:Update-alternatives_migration

@lslezak lslezak merged commit f57755c into master Jun 30, 2026
2 checks passed
@lslezak lslezak deleted the alts-alternatives branch June 30, 2026 11:00
@github-actions

Copy link
Copy Markdown

✅ Autosubmission job #28439420658 successfully finished

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.

3 participants