mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix package "shasum" validation on Mac OS X 10.11.2 // Resolve #429
This commit is contained in:
@ -14,6 +14,8 @@ PlatformIO 2.0
|
|||||||
development platform
|
development platform
|
||||||
* Fixed project generator for CLion IDE
|
* Fixed project generator for CLion IDE
|
||||||
(`issue #422 <https://github.com/platformio/platformio/issues/422>`_)
|
(`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)
|
2.7.0 (2015-12-30)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -58,6 +58,10 @@ The latest stable version of PlatformIO may be installed or upgraded via
|
|||||||
|
|
||||||
pip install -U platformio
|
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
|
Note that you may run into permissions issues running these commands. You have
|
||||||
a few options here:
|
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
|
* Run the command in a `virtualenv <https://virtualenv.pypa.io>`_ local to a
|
||||||
specific project working set.
|
specific project working set.
|
||||||
|
|
||||||
If ``pip`` command is not available or you have problems with it try
|
|
||||||
:ref:`installation_installer_script`.
|
|
||||||
|
|
||||||
.. _installation_installer_script:
|
.. _installation_installer_script:
|
||||||
|
|
||||||
b) Installer Script
|
b) Installer Script
|
||||||
|
@ -88,12 +88,12 @@ class FileDownloader(object):
|
|||||||
try:
|
try:
|
||||||
result = util.exec_command(["sha1sum", self._destination])
|
result = util.exec_command(["sha1sum", self._destination])
|
||||||
dlsha1 = result['out']
|
dlsha1 = result['out']
|
||||||
except OSError:
|
except (OSError, ValueError):
|
||||||
try:
|
try:
|
||||||
result = util.exec_command(
|
result = util.exec_command(
|
||||||
["shasum", "-a", "1", self._destination])
|
["shasum", "-a", "1", self._destination])
|
||||||
dlsha1 = result['out']
|
dlsha1 = result['out']
|
||||||
except OSError:
|
except (OSError, ValueError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if dlsha1:
|
if dlsha1:
|
||||||
|
Reference in New Issue
Block a user