diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-01-31 23:45:13 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-01-31 23:45:13 +0100 |
commit | 7a173a49b865530400d28f958f1a89aa775652ae (patch) | |
tree | 4e66cf10757fbc653ec10f290bbff3d9b8aa7519 | |
parent | 5b44487b351458c2825f8306b04d2da42c484937 (diff) |
upgrade: don't add unnecessary packages
Add packages added to old version.
-rw-r--r-- | scripts/upgrade.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |