mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 20:26:44 +02:00
eclass/python-any-r1: Sync with Gentoo
It's from Gentoo commit 142233f08e4be891468e74727ce4e0e538adc5c7.
This commit is contained in:
parent
d02447b9d1
commit
59856cf0ce
@ -167,8 +167,7 @@ inherit python-utils-r1
|
||||
# @CODE
|
||||
|
||||
_python_any_set_globals() {
|
||||
local usestr deps i PYTHON_PKG_DEP
|
||||
[[ ${PYTHON_REQ_USE} ]] && usestr="[${PYTHON_REQ_USE}]"
|
||||
local deps i PYTHON_PKG_DEP
|
||||
|
||||
_python_set_impls
|
||||
|
||||
@ -259,7 +258,7 @@ python_gen_any_dep() {
|
||||
local i_depstr=${depstr//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}}
|
||||
i_depstr=${i_depstr//\$\{PYTHON_SINGLE_USEDEP\}/${PYTHON_SINGLE_USEDEP}}
|
||||
# note: need to strip '=' slot operator for || deps
|
||||
out="( ${PYTHON_PKG_DEP%:=} ${i_depstr} ) ${out}"
|
||||
out="( ${PYTHON_PKG_DEP/:=} ${i_depstr} ) ${out}"
|
||||
done
|
||||
echo "|| ( ${out})"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user