mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
plugins: do not register own name as conflict #4202
This commit is contained in:
parent
5d346589ed
commit
4867a75d30
1 changed files with 4 additions and 2 deletions
|
|
@ -71,12 +71,14 @@ PLUGIN_SUFFIX?= -devel
|
|||
PLUGIN_VARIANT?= ${PLUGIN_VARIANTS:[1]}
|
||||
.endif
|
||||
|
||||
.if !empty(PLUGIN_VARIANT)
|
||||
.if "${PLUGIN_VARIANT}" == ""
|
||||
.error Plugin variant cannot be empty
|
||||
.else
|
||||
PLUGIN_NAME:= ${${PLUGIN_VARIANT}_NAME}
|
||||
.if empty(PLUGIN_NAME)
|
||||
.error Plugin variant '${PLUGIN_VARIANT}' does not exist
|
||||
.endif
|
||||
.for _PLUGIN_VARIANT in ${PLUGIN_VARIANTS}
|
||||
.for _PLUGIN_VARIANT in ${PLUGIN_VARIANTS:N${PLUGIN_VARIANT}}
|
||||
PLUGIN_CONFLICTS+= ${${_PLUGIN_VARIANT}_NAME}
|
||||
.endfor
|
||||
PLUGIN_DEPENDS+= ${${PLUGIN_VARIANT}_DEPENDS}
|
||||
|
|
|
|||
Loading…
Reference in a new issue