Fix package "shasum" validation on Mac OS X 10.11.2 // Resolve #429

This commit is contained in:
Ivan Kravets
2016-01-03 17:45:49 +02:00
parent 4d2daa9da4
commit fdff35e31c
3 changed files with 8 additions and 5 deletions

View File

@ -14,6 +14,8 @@ PlatformIO 2.0
development platform
* Fixed project generator for CLion IDE
(`issue #422 <https://github.com/platformio/platformio/issues/422>`_)
* Fixed package ``shasum`` validation on Mac OS X 10.11.2
(`issue #429 <https://github.com/platformio/platformio/issues/429>`_)
2.7.0 (2015-12-30)
~~~~~~~~~~~~~~~~~~

View File

@ -58,6 +58,10 @@ The latest stable version of PlatformIO may be installed or upgraded via
pip install -U platformio
If ``pip`` command is not available run ``easy_install pip`` or use
:ref:`installation_installer_script` which will install ``pip`` and
``platformio`` automatically.
Note that you may run into permissions issues running these commands. You have
a few options here:
@ -67,9 +71,6 @@ a few options here:
* Run the command in a `virtualenv <https://virtualenv.pypa.io>`_ local to a
specific project working set.
If ``pip`` command is not available or you have problems with it try
:ref:`installation_installer_script`.
.. _installation_installer_script:
b) Installer Script

View File

@ -88,12 +88,12 @@ class FileDownloader(object):
try:
result = util.exec_command(["sha1sum", self._destination])
dlsha1 = result['out']
except OSError:
except (OSError, ValueError):
try:
result = util.exec_command(
["shasum", "-a", "1", self._destination])
dlsha1 = result['out']
except OSError:
except (OSError, ValueError):
pass
if dlsha1: