Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Fix find_newer_versions for Removed Packages
Browse files Browse the repository at this point in the history
Finding a newer version of a package fails when that package has been
removed or renamed. This patch fixes this by skipping any
removed/renamed packages when attempting to find newer versions.
  • Loading branch information
prikhi committed Nov 14, 2016
1 parent 225fbe4 commit 6fc3e09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elm_deps_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def find_newer_versions(local_deps, remote_deps):
upgrade_suggestions = {}

for (dep, version) in local_deps.items():
if dep not in remote_deps:
continue
current_version = top_range(version)
patches = get_patch_upgrades(current_version, remote_deps[dep]['versions'])
minors = get_minor_upgrades(current_version, remote_deps[dep]['versions'])
Expand Down

0 comments on commit 6fc3e09

Please sign in to comment.