crew: Fix remove on reinstall/upgrade (#12520)

* Fix container test workflow

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Set `force: true` when reinstalling/upgrading

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Bump version

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Do not remove user configs on reinstallation

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

---------

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>
This commit is contained in:
SupeChicken666
2025-08-17 02:42:07 +08:00
committed by GitHub
parent 354c0d028a
commit 2ba4b64453
4 changed files with 6 additions and 8 deletions

View File

@@ -1258,7 +1258,7 @@ def install
# remove it just before the file copy
if @pkg.in_upgrade
puts 'Attempting removal since this is an upgrade or reinstall...'
Command.remove(@pkg, verbose: CREW_VERBOSE, force: @opt_force)
Command.remove(@pkg, verbose: CREW_VERBOSE, force: true, only_remove_files: true)
end
if @pkg.is_fake?