From 64ddf67edc93245cc5a424781706ee7ddda72412 Mon Sep 17 00:00:00 2001 From: mfjurbala Date: Thu, 24 Apr 2025 22:09:20 -0400 Subject: [PATCH] Fix issue #249: Show removal of package conflicts Software station fails to show the removal of conflicting packages during new package installation. This was reported in Issue #249. During package installation, removed conflits are now added to the "REMOVED" list and shown to the user. --- software_station_pkg.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/software_station_pkg.py b/software_station_pkg.py index 4c0bc47..501338b 100644 --- a/software_station_pkg.py +++ b/software_station_pkg.py @@ -269,6 +269,15 @@ def get_pkg_changes_data(remove_list, install_list): break elif stop is True: pkg_to_reinstall.append(line.strip()) + if 'REMOVED:' in install_pkg: + for line in install_pkg_list: + if 'REMOVED:' in line: + stop = True + elif stop is True and line == '': + stop = False + break + elif stop is True: + pkg_to_remove.append(line.strip()) pkg_dictionaire = { 'remove': pkg_to_remove, 'upgrade': pkg_to_upgrade,