Skip to content

Commit

Permalink
Remove autofixing legacy library names
Browse files Browse the repository at this point in the history
All users using latest Package Control have been migrated. So this function
is no longer required. All of those still using old betas might be affected
once upgrading, but well, I don't care about those still using out-dated betas.

They will run into self-made trouble.
  • Loading branch information
deathaxe committed Jul 12, 2024
1 parent 3685b8c commit 92dfeb3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions package_control/package_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import time
import traceback

from . import library, sys_path, text, __version__
from . import sys_path, text, __version__
from .activity_indicator import ActivityIndicator
from .automatic_upgrader import AutomaticUpgrader
from .clear_directory import clear_directory, delete_directory
Expand Down Expand Up @@ -96,8 +96,6 @@ def run(self):
orphaned_ignored_packages = None
removed_packages = None

self.remove_legacy_libraries()

# Check metadata to verify packages were not improperly installed
self.migrate_incompatible_packages(found_packages)

Expand Down Expand Up @@ -446,17 +444,6 @@ def install_missing_packages(self, found_packages):
with ActivityIndicator('Installing missing packages...') as progress:
self.run_install_tasks(tasks, progress, unattended=True, package_kind='missing')

def remove_legacy_libraries(self):
"""
Rename .dist-info directory
Prevent corruptions when satisfying libraries due to name translations
"""

for lib in library.list_all():
if lib.name in library.DEPENDENCY_NAME_MAP:
library.remove(lib)

def remove_orphaned_packages(self, found_packages):
"""
Removes orphaned packages.
Expand Down

0 comments on commit 92dfeb3

Please sign in to comment.