mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 06:21:46 +01:00
eclass/python-any-r1: Sync with Gentoo
It's from Gentoo commit 31b129be4f0f35449691a98a7b51db1a7f835c70.
This commit is contained in:
parent
86391f9d78
commit
423b2b2549
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: python-any-r1.eclass
|
# @ECLASS: python-any-r1.eclass
|
||||||
@ -175,7 +175,7 @@ _python_any_set_globals() {
|
|||||||
_python_export "${i}" PYTHON_PKG_DEP
|
_python_export "${i}" PYTHON_PKG_DEP
|
||||||
|
|
||||||
# note: need to strip '=' slot operator for || deps
|
# note: need to strip '=' slot operator for || deps
|
||||||
deps="${PYTHON_PKG_DEP/:=} ${deps}"
|
deps="${PYTHON_PKG_DEP/=} ${deps}"
|
||||||
done
|
done
|
||||||
deps="|| ( ${deps})"
|
deps="|| ( ${deps})"
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ python_gen_any_dep() {
|
|||||||
local i_depstr=${depstr//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}}
|
local i_depstr=${depstr//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}}
|
||||||
i_depstr=${i_depstr//\$\{PYTHON_SINGLE_USEDEP\}/${PYTHON_SINGLE_USEDEP}}
|
i_depstr=${i_depstr//\$\{PYTHON_SINGLE_USEDEP\}/${PYTHON_SINGLE_USEDEP}}
|
||||||
# note: need to strip '=' slot operator for || deps
|
# note: need to strip '=' slot operator for || deps
|
||||||
out="( ${PYTHON_PKG_DEP/:=} ${i_depstr} ) ${out}"
|
out="( ${PYTHON_PKG_DEP/=} ${i_depstr} ) ${out}"
|
||||||
done
|
done
|
||||||
echo "|| ( ${out})"
|
echo "|| ( ${out})"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user