summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2016-07-26 14:37:08 -0500
committerPaul Varner <fuzzyray@gentoo.org>2016-07-26 14:37:08 -0500
commitb8465c4e78e3ba4c13513b50853faa194fb41cb0 (patch)
tree9784abee7414c28768c2f02203507202a7d55cd3 /app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch
parentdev-libs/expat: CVE-2016-0718 regression fix (diff)
downloadgentoo-b8465c4e78e3ba4c13513b50853faa194fb41cb0.tar.gz
gentoo-b8465c4e78e3ba4c13513b50853faa194fb41cb0.tar.bz2
gentoo-b8465c4e78e3ba4c13513b50853faa194fb41cb0.zip
app-portage/gentoolkit: Revision bump to add patch
Add patch to fix compatability with python2.7 and equery changes. This patch fixes Bug 589686 Package-Manager: portage-2.3.0
Diffstat (limited to 'app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch')
-rw-r--r--app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch b/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch
new file mode 100644
index 00000000000..282846c4724
--- /dev/null
+++ b/app-portage/gentoolkit/files/0.3.2-helpers.py-589686.patch
@@ -0,0 +1,30 @@
+From bc92540f8ce498e8305103619c7085b670ba19b1 Mon Sep 17 00:00:00 2001
+From: Paul Varner <fuzzyray@gentoo.org>
+Date: Mon, 25 Jul 2016 13:01:06 -0500
+Subject: Add missing import of io.open when using python2.7
+
+This fixes the traceback when running equery changes with Python 2.7
+
+X-Gentoo-bug: 589686
+X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=589686
+---
+ pym/gentoolkit/helpers.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py
+index 0d985b6..8d25393 100644
+--- a/pym/gentoolkit/helpers.py
++++ b/pym/gentoolkit/helpers.py
+@@ -26,6 +26,9 @@ __docformat__ = 'epytext'
+ # =======
+
+ import os
++import sys
++if sys.hexversion < 0x3000000:
++ from io import open
+ import re
+ from functools import partial
+ from itertools import chain
+--
+cgit v0.12
+