Skip to content

Avoid upgrade flag override for multiple versions #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pip_upgrader/packages_status_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ def detect_available_upgrades(self, options):
print('up to date: {}'.format(current_version))
sys.stdout.flush()

old_status = self.packages_status_map.get(package_name, None)

if old_status is not None and old_status["upgrade_available"]:
continue

self.packages_status_map[package_name] = package_status
except Exception as e: # noqa # pragma: nocover
print('Error while parsing package {} (skipping). \nException: '.format(package), e)
Expand Down