diff options
author | Alexis Ballier <aballier@gentoo.org> | 2019-12-12 13:13:38 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2019-12-12 13:30:58 +0100 |
commit | 19d8681750ee6c2c6933e031ffed1d10cc4b9cf3 (patch) | |
tree | 562d6590843bdada8f2f3a759cb940d12a3cb414 /dev-python/vcstools | |
parent | dev-ros/rviz: bump to 1.13.6. (diff) | |
download | gentoo-19d8681750ee6c2c6933e031ffed1d10cc4b9cf3.tar.gz gentoo-19d8681750ee6c2c6933e031ffed1d10cc4b9cf3.tar.bz2 gentoo-19d8681750ee6c2c6933e031ffed1d10cc4b9cf3.zip |
dev-python/vcstools: fix usage of yaml.load
Bug: https://bugs.gentoo.org/698668
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-python/vcstools')
-rw-r--r-- | dev-python/vcstools/files/yaml.patch | 25 | ||||
-rw-r--r-- | dev-python/vcstools/vcstools-0.1.42.ebuild | 7 |
2 files changed, 29 insertions, 3 deletions
diff --git a/dev-python/vcstools/files/yaml.patch b/dev-python/vcstools/files/yaml.patch new file mode 100644 index 000000000000..727131bc5618 --- /dev/null +++ b/dev-python/vcstools/files/yaml.patch @@ -0,0 +1,25 @@ +https://github.com/vcstools/vcstools/issues/158 +https://bugs.gentoo.org/698668 + +Index: vcstools-0.1.42/src/vcstools/tar.py +=================================================================== +--- vcstools-0.1.42.orig/src/vcstools/tar.py ++++ vcstools-0.1.42/src/vcstools/tar.py +@@ -77,7 +77,7 @@ class TarClient(VcsClientBase): + """ + if self.detect_presence(): + with open(self.metadata_path, 'r') as metadata_file: +- metadata = yaml.load(metadata_file.read()) ++ metadata = yaml.full_load(metadata_file.read()) + if 'url' in metadata: + return metadata['url'] + return None +@@ -165,7 +165,7 @@ class TarClient(VcsClientBase): + + if self.detect_presence(): + with open(self.metadata_path, 'r') as metadata_file: +- metadata = yaml.load(metadata_file.read()) ++ metadata = yaml.full_load(metadata_file.read()) + if 'version' in metadata: + return metadata['version'] + return None diff --git a/dev-python/vcstools/vcstools-0.1.42.ebuild b/dev-python/vcstools/vcstools-0.1.42.ebuild index 2526583e223a..84a9cca031f2 100644 --- a/dev-python/vcstools/vcstools-0.1.42.ebuild +++ b/dev-python/vcstools/vcstools-0.1.42.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 PYTHON_COMPAT=( python{2_7,3_5,3_6} ) SCM="" @@ -33,8 +33,8 @@ RDEPEND=" dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/python-dateutil[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND} - test? ( +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] dev-vcs/git dev-vcs/bzr @@ -42,6 +42,7 @@ DEPEND="${RDEPEND} dev-vcs/subversion ) " +PATCHES=( "${FILESDIR}/yaml.patch" ) python_test() { # From travis.yml |