Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Sep 7, 2024
1 parent f5b7fa1 commit ef3bf19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package_control/package_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def run(self):
Package clean-up could not be completed.
You may need to restart your OS to unlock relevant files and directories.
The following packages are effected: "%s"
The following packages are affected: "%s"
''',
'", "'.join(sorted(self.failed_cleanup, key=lambda s: s.lower()))
)
Expand Down
14 changes: 7 additions & 7 deletions package_control/package_disabler.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def disable_packages(package_actions):
in_process = set()

need_restore = False
effected = set()
affected = set()

for action, packages in package_actions.items():
# convert packages to a set
Expand All @@ -251,7 +251,7 @@ def disable_packages(package_actions):
packages = {packages}

disabled = packages - (ignored_at_start - in_process_at_start)
effected |= disabled
affected |= disabled
ignored |= ignored_at_start | disabled

# Clear packages from in-progress when disabling them, otherwise
Expand Down Expand Up @@ -306,7 +306,7 @@ def disable_packages(package_actions):
ignored_at_start
)

return effected
return affected

@staticmethod
def reenable_packages(package_actions):
Expand Down Expand Up @@ -338,7 +338,7 @@ def reenable_packages(package_actions):
in_process = load_list_setting(pc_settings, 'in_process_packages')

need_restore = False
effected = set()
affected = set()

try:
for action, packages in package_actions.items():
Expand Down Expand Up @@ -371,22 +371,22 @@ def reenable_packages(package_actions):
for package in packages:
events.clear(events.REMOVE, package)

effected |= packages
affected |= packages

# always flush settings to disk
# to make sure to also save updated `installed_packages`
save_list_setting(
pc_settings,
pc_settings_filename(),
'in_process_packages',
in_process - effected
in_process - affected
)

save_list_setting(
settings,
preferences_filename(),
'ignored_packages',
ignored - effected,
ignored - affected,
ignored
)

Expand Down

0 comments on commit ef3bf19

Please sign in to comment.