From 7f4acac565b6f9dedbabb8f4abecb8268dce3d27 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sat, 2 Mar 2024 14:20:33 +0100 Subject: [PATCH] Fix missing packages after satisfying libraries manually This commit swaps removing orphaned and installing missing or upgrading libraries when manually satisfying libraries in order to prevent missing python package folders due to renamed libraries. related with 4607c31fb7fe9626268d33f9a993fca60189c165. --- package_control/commands/satisfy_libraries_command.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package_control/commands/satisfy_libraries_command.py b/package_control/commands/satisfy_libraries_command.py index bcc87b6c..b86b0ea2 100644 --- a/package_control/commands/satisfy_libraries_command.py +++ b/package_control/commands/satisfy_libraries_command.py @@ -25,20 +25,20 @@ def satisfy(): required_libraries = manager.find_required_libraries() - if not manager.install_libraries(libraries=required_libraries, fail_early=False): + if not manager.cleanup_libraries(required_libraries=required_libraries): show_error( ''' - One or more libraries could not be installed or updated. + One or more orphaned libraries could not be removed. Please check the console for details. ''' ) error = True - if not manager.cleanup_libraries(required_libraries=required_libraries): + if not manager.install_libraries(libraries=required_libraries, fail_early=False): show_error( ''' - One or more orphaned libraries could not be removed. + One or more libraries could not be installed or updated. Please check the console for details. '''