Improve a work in off-line mode

This commit is contained in:
Ivan Kravets
2016-09-19 15:10:28 +03:00
parent 543a137506
commit da48ea3818
6 changed files with 52 additions and 15 deletions
+3 -1
View File
@@ -542,7 +542,9 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
except exception.PlatformioException:
pass
if not latest_version:
click.echo("[%s]" % (click.style("Unknown", fg="yellow")))
click.echo("[%s]" % (click.style(
"Off-line" if not util.internet_on() else "Unknown",
fg="yellow")))
return
up_to_date = False