Skip to content

Commit 3a03c1b

Browse files
committed
Propagated keep_permissions and pattern parameters from tools.get() to tools.unzip()
1 parent 99e99d3 commit 3a03c1b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎changelog.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Check https://github.com/conan-io/conan for issues and more details about develo
2222
- Feature: ``conan remote list --raw`` prints remote info in a format valid for *remotes.txt*, so it can be used for ``conan config install``
2323
- Feature: Visual Studio generator creates *conanbuildinfo.props* file using ``$(USERPROFILE)`` macro.
2424
- Feature: Added ``filename`` parameter to ``tools.get()`` in case it cannot be deduced from URL.
25+
- Feature: Propagated ``keep_permissions`` and ``pattern`` parameters from ``tools.get()`` to ``tools.unzip()``.
2526
- Feature: Added XZ extensions to ``unzip()``. It will only work in Python 3 with lzma support enabled, producing an error otherwise.
2627

2728
1.5.2 (5-July-2018)

‎reference/tools.rst‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ Parameters:
197197
- Same parameters as the above :ref:`tools.build_sln_command()<build_sln_commmand>`.
198198
- **force_vcvars**: Optional. Defaulted to False. Will set ``vcvars_command(force=force_vcvars)``.
199199

200+
.. _tools_unzip:
201+
200202
tools.unzip()
201203
-------------
202204

@@ -283,7 +285,7 @@ tools.get()
283285

284286
.. code-block:: python
285287
286-
def get(url, filenname="", md5="", sha1="", sha256="")
288+
def get(url, filenname="", md5="", sha1="", sha256="", keep_permissions=False, pattern=None)
287289
288290
Just a high level wrapper for download, unzip, and remove the temporary zip file once unzipped.
289291
You can pass hash checking parameters: ``md5``, ``sha1``, ``sha256``. All the specified algorithms
@@ -303,6 +305,8 @@ Parameters:
303305
- **md5** (Optional, Defaulted to ``""``): MD5 hash code to check the downloaded file.
304306
- **sha1** (Optional, Defaulted to ``""``): SHA1 hash code to check the downloaded file.
305307
- **sha256** (Optional, Defaulted to ``""``): SHA256 hash code to check the downloaded file.
308+
- **keep_permissions** (Optional, Defaulted to ``False``): Propagates parameter to :ref:`tools_unzip`.
309+
- **pattern** (Optional, Defaulted to ``None``): Propagates parameter to :ref:`tools_unzip`.
306310

307311
.. _tools_get_env:
308312

0 commit comments

Comments
 (0)