Skip to content

Commit

Permalink
Merge pull request #85 from ryneeverett/fix-upgrade-exit
Browse files Browse the repository at this point in the history
Return True on successfull Repo.upgrade().
  • Loading branch information
RonnyPfannschmidt authored Dec 26, 2016
2 parents ad72771 + 1f40fcd commit 5f5feb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def upgrade(self, package, editable=False):
except (IOError, OSError):
pass

return True

def list_everything(self):
venvs = {}
python = '/Scripts/python.exe' if IS_WIN else '/bin/python'
Expand Down
1 change: 1 addition & 0 deletions testing/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_simple_install(repo, home, bin, package, glob):
repo.install(package)
assert home.join(package).check()
assert bin.listdir(glob)
assert repo.upgrade(package)


@pytest.mark.xfail(sys.version_info[0] != 3,
Expand Down

0 comments on commit 5f5feb8

Please sign in to comment.