Skip missing package when checking for updates

This commit is contained in:
Ivan Kravets
2017-09-06 14:37:04 +03:00
parent a934efa90a
commit f24e97e933
2 changed files with 3 additions and 2 deletions

View File

@ -553,7 +553,8 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
`False` - package is up-to-date
`String` - a found latest version
"""
assert isdir(pkg_dir)
if not isdir(pkg_dir):
return None
latest = None
manifest = self.load_manifest(pkg_dir)
# skip fixed package to a specific version

View File

@ -184,7 +184,7 @@ def test_global_lib_update(clirunner, validate_cliresult, isolated_pio_home):
result = clirunner.invoke(cmd_lib, ["-g", "update"])
validate_cliresult(result)
validate_cliresult(result)
assert result.output.count("[Skip]") == 5
assert result.output.count("[Fixed]") == 5
assert result.output.count("[Up-to-date]") == 10
assert "Uninstalling ArduinoJson @ 5.7.3" in result.output
assert "Uninstalling IRremoteESP8266 @ fee16e880b" in result.output