From 409ad3cef7a71d8a16ca7b57999fecdb6f3457fc Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 4 Jul 2026 08:41:31 +0000 Subject: [PATCH] fix(scripts): replace deprecated pip --format=legacy with freeze in uninstall.sh pip 23.0 (2023-01-30) removed the 'legacy' format. Switch to --format=freeze (package==version per line) and use cut -d'=' -f1 to extract just the package name. Fixes ActivityWatch/activitywatch#1343. --- scripts/uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 3fade6147..e8ba65390 100755 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -1,6 +1,6 @@ #!/bin/bash -modules=$(pip3 list --format=legacy | grep 'aw-' | grep -o '^aw-[^ ]*') +modules=$(pip3 list --format=freeze | grep '^aw-' | cut -d'=' -f1) for module in $modules; do pip3 uninstall -y $module