Skip to content

purge: a partial run is a warning, not a failed install - #150

Open
Tkyoxx wants to merge 2 commits into
Lemxy:mainfrom
Tkyoxx:pr/12-purge-warning
Open

Tkyoxx wants to merge 2 commits into
Lemxy:mainfrom
Tkyoxx:pr/12-purge-warning

Conversation

@Tkyoxx

@Tkyoxx Tkyoxx commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Stacked on #144. Until that one is merged this branch also carries its commit, so the diff below is bigger than this PR. Its own change is 1 commit; I will rebase it as soon as #144 is in.

What

Removing an app's installed copy sometimes takes its image copy along (or the other way round), so the second step "failed" on something already gone and the installer ran a rollback that only deletes purge.exe. The image copies go first, a second look sorts out what really failed, a failed line says why, and --apply exits 3 when items are left: the installer reports a warning and keeps purge applied.

Test

cargo test -p purge; install purge on a VM.

- winrust-common: Lang::Es and Lang::ALL; t!/tf! take an optional es: arm
  after zh: (or after pt: in calls without zh:), and any language left out
  shows the English text, so nothing is ever blank or a raw key.
- No lang.txt: the Windows UI language when WinRust has it, else English.
- lang() re-reads lang.txt at most once a second and set_lang broadcasts
  style::msg(), so open windows switch without a restart: topbar now listens
  for the broadcast, rust-settings rebuilds its pages and rust-explorer its
  column headers and navigation pane when the language moved. The "restart
  the programs" notes say the switch is immediate now.
- The installer list, rust-settings and the bar's language page take their
  languages from Lang::ALL (Spanish included); --lang accepts es.
- Spanish for every t!/tf! call (1,246), the installer table, the Run box
  commands and the Start button menu, plus the few strings still English-only
  in rust-explorer.
- rs-launcher's counts gave "2 registry entrys" and Portuguese had no plural
  at all: every language now spells out its singular and plural.
Removing an app's installed copy first sometimes takes its image copy along
(or the other way round), so the second step "failed" on something already
gone, and the installer then ran its automatic rollback, which only deletes
purge.exe: the apps were removed for good either way.

- The image's copies go first, and a second look sorts out what failed: gone
  with its other half counts as removed, still there gets one more try.
- A failed line says why (PowerShell's first error line) and goes to stderr.
- --apply exits 3 when some items are left; the installer keeps purge as
  applied and reports the leftovers as a warning instead of an error.
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.

1 participant