From 7a173a49b865530400d28f958f1a89aa775652ae Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 31 Jan 2023 23:45:13 +0100 Subject: upgrade: don't add unnecessary packages Add packages added to old version. --- scripts/upgrade.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade.py b/scripts/upgrade.py index 14b184e..9b7d9d3 100644 --- a/scripts/upgrade.py +++ b/scripts/upgrade.py @@ -181,8 +181,9 @@ def main(argv): old_set = old.package_set() new_set = new.package_set() del_set = orig_set.difference(old_set) + add_set = old_set.difference(orig_set) del_packages = list(del_set) - add_packages = list(old_set.difference(new_set).difference(['iw']).difference(del_set)) + add_packages = list(add_set.difference(['iw'])) if len(del_packages) > 0: print("Remove", del_packages) -- cgit v1.2.3