Skip to content

repair: disable auto-pin to preserve pin state across reinstalls - #6571

Merged
swick merged 1 commit into
flatpak:mainfrom
razzeee:issue-6565-repair-pin
Apr 10, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
razzeee:issue-6565-repair-pin

Conversation

@razzeee

@razzeee razzeee commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

When repair (re)installs runtimes via a transaction, the transaction auto-pins every runtime it touches. This causes repair --reinstall-all to pin every installed runtime, cluttering the pin list with runtimes that were never explicitly pinned by the user and preventing flatpak remove --unused from cleaning them up.

Fix this by disabling auto-pinning on the repair transaction so that the pin state is left exactly as it was before the repair.

Fixes #6565

Comment thread tests/test-repair.sh Outdated
Comment thread tests/test-repair.sh Outdated
Comment thread tests/test-repair.sh Outdated
@bbhtt

bbhtt commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Seems fine now.

@razzeee

razzeee commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

Should I squash?

@swick

swick commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Yes please. It makes sense to always push a squashed, or rather a clean-history version. It's easier to review and github, gitlab, etc all provide a function to diff between pushes.

@razzeee

razzeee commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

Yeah, I rarely use those, I usually commit on top and just squash at the end, when everything has been checked.

When repair (re)installs runtimes via a transaction, the transaction
auto-pins every runtime it touches. This causes repair --reinstall-all
to pin every installed runtime, cluttering the pin list with runtimes
that were never explicitly pinned by the user and preventing
flatpak remove --unused from cleaning them up.

Fix this by disabling auto-pinning on the repair transaction so that
the pin state is left exactly as it was before the repair.

Fixes flatpak#6565
@razzeee
razzeee force-pushed the issue-6565-repair-pin branch from ec84d64 to 6097f01 Compare April 10, 2026 13:45
@swick
swick added this pull request to the merge queue Apr 10, 2026
Merged via the queue into flatpak:main with commit cff9812 Apr 10, 2026
11 checks passed
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.

[Feature request]: Preserves pin status when run flatpak-repair

3 participants