Skip to content

Don't run needrestart on arch if pacman installed it#1191

Open
themadprofessor wants to merge 4 commits into
topgrade-rs:mainfrom
themadprofessor:needrestart_arch
Open

Don't run needrestart on arch if pacman installed it#1191
themadprofessor wants to merge 4 commits into
topgrade-rs:mainfrom
themadprofessor:needrestart_arch

Conversation

@themadprofessor
Copy link
Copy Markdown
Contributor

What does this PR do

The Arch package includes pacman hooks that run needrestart for us.
Closes #993

The Distribution is now stored in the ExecutionContext to avoid detecting the distro multiple times.

Standards checklist

  • The PR title is descriptive
  • I have read CONTRIBUTING.md
  • Optional: I have tested the code myself
  • If this PR introduces new user-facing messages they are translated

For new steps

  • Optional: Topgrade skips this step where needed
  • Optional: The --dry-run option works with this step
  • Optional: The --yes option works with this step if it is supported by
    the underlying command

If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.

@themadprofessor themadprofessor force-pushed the needrestart_arch branch 2 times, most recently from 8c1fcd6 to a47150b Compare June 27, 2025 08:16
@themadprofessor themadprofessor force-pushed the needrestart_arch branch 2 times, most recently from 4b6e537 to d0c6213 Compare July 16, 2025 09:44
barkleesanders added a commit to barkleesanders/topgrade that referenced this pull request Mar 8, 2026
From PR topgrade-rs#1191.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Skip needrestart if Pacman Hook is Installed

1 participant