Skip to content

Commit

Permalink
Fix missing packages after satisfying libraries manually
Browse files Browse the repository at this point in the history
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 4607c31.
  • Loading branch information
deathaxe committed Mar 2, 2024
1 parent 74c24c6 commit 7f4acac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package_control/commands/satisfy_libraries_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
'''
Expand Down

0 comments on commit 7f4acac

Please sign in to comment.