mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
eclass/python-any-r1: Sync with Gentoo
It's from Gentoo commit ee468eec11953a67f877bc7e15079f9dcdc7ddaa.
This commit is contained in:
parent
7a6c2de03b
commit
9295f0901f
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: python-any-r1.eclass
|
||||
@ -176,7 +176,7 @@ _python_any_set_globals() {
|
||||
_python_export "${i}" PYTHON_PKG_DEP
|
||||
|
||||
# note: need to strip '=' slot operator for || deps
|
||||
deps="${PYTHON_PKG_DEP/:0=/:0} ${deps}"
|
||||
deps="${PYTHON_PKG_DEP/:=} ${deps}"
|
||||
done
|
||||
deps="|| ( ${deps})"
|
||||
|
||||
@ -259,7 +259,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