mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
dev-util/gyp: fix faulty sed usage
It currently mis-replaces `from six.moves import collections_abc`, giving `from ... import collections.abc_abc` which is invalid syntax. Signed-off-by: WANG Xuerui <xen0n@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/29241 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -35,12 +35,12 @@ python_prepare_all() {
|
||||
|
||||
sed -e "s/' Linux %s' % ' '\.join(platform.linux_distribution())/' Linux'/" -i gyptest.py || die
|
||||
sed \
|
||||
-e "s/import collections/import collections.abc/" \
|
||||
-e "s/^import collections/import collections.abc/" \
|
||||
-e "s/collections\.MutableSet/collections.abc.MutableSet/" \
|
||||
-i pylib/gyp/common.py || die
|
||||
sed -e "s/the_dict_key is 'variables'/the_dict_key == 'variables'/" -i pylib/gyp/input.py || die
|
||||
sed \
|
||||
-e "s/import collections/import collections.abc/" \
|
||||
-e "s/^import collections/import collections.abc/" \
|
||||
-e "s/collections\.Iterable/collections.abc.Iterable/" \
|
||||
-i pylib/gyp/msvs_emulation.py || die
|
||||
sed \
|
||||
|
||||
Reference in New Issue
Block a user