mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
- Fix CONFLICTS handling after r313713 caused pkg-query
output to not properly be piped. This was due to || : causing its output to be piped to the while loop instead of the pkg-query output. With hat: portmgr Reviewed by: bapt
This commit is contained in:
parent
0c180ca841
commit
189cb180bd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314004
@ -153,7 +153,7 @@ fake-pkg:
|
||||
check-build-conflicts:
|
||||
.if ( defined(CONFLICTS) || defined(CONFLICTS_BUILD) ) && !defined(DISABLE_CONFLICTS) && !defined(DEFER_CONFLICTS_CHECK)
|
||||
@conflicts_with=$$( \
|
||||
${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_BUILD:C/.+/'&'/} 2>/dev/null || : \
|
||||
{ ${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_BUILD:C/.+/'&'/} 2>/dev/null || : ; } \
|
||||
| while read pkgname prfx orgn; do \
|
||||
if [ "/${PREFIX}" = "/$${prfx}" -a "/${PKGORIGIN}" != "/$${orgn}" ]; then \
|
||||
${ECHO_CMD} -n " $${pkgname}"; \
|
||||
@ -177,7 +177,7 @@ check-build-conflicts:
|
||||
identify-install-conflicts:
|
||||
.if ( defined(CONFLICTS) || defined(CONFLICTS_INSTALL) ) && !defined(DISABLE_CONFLICTS)
|
||||
@conflicts_with=$$( \
|
||||
${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_INSTALL:C/.+/'&'/} 2>/dev/null || : \
|
||||
{ ${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_INSTALL:C/.+/'&'/} 2>/dev/null || : ; } \
|
||||
| while read pkgname prfx orgn; do \
|
||||
if [ "/${PREFIX}" = "/$${prfx}" -a "/${PKGORIGIN}" != "/$${orgn}" ]; then \
|
||||
${ECHO_CMD} -n " $${pkgname}"; \
|
||||
@ -202,7 +202,7 @@ check-install-conflicts:
|
||||
.if ( defined(CONFLICTS) || defined(CONFLICTS_INSTALL) || ( defined(CONFLICTS_BUILD) && defined(DEFER_CONFLICTS_CHECK) ) ) && !defined(DISABLE_CONFLICTS)
|
||||
.if defined(DEFER_CONFLICTS_CHECK)
|
||||
@conflicts_with=$$( \
|
||||
${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_BUILD:C/.+/'&'/} ${CONFLICTS_INSTALL:C/.+/'&'/} 2>/dev/null || : \
|
||||
{ ${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_BUILD:C/.+/'&'/} ${CONFLICTS_INSTALL:C/.+/'&'/} 2>/dev/null || : ; } \
|
||||
| while read pkgname prfx orgn; do \
|
||||
if [ "/${PREFIX}" = "/$${prfx}" -a "/${PKGORIGIN}" != "/$${orgn}" ]; then \
|
||||
${ECHO_CMD} -n " $${pkgname}"; \
|
||||
@ -220,7 +220,7 @@ check-install-conflicts:
|
||||
fi
|
||||
.else
|
||||
@conflicts_with=$$( \
|
||||
${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_INSTALL:C/.+/'&'/} 2>/dev/null || : \
|
||||
{ ${PKG_QUERY} -g "%n-%v %p %o" ${CONFLICTS:C/.+/'&'/} ${CONFLICTS_INSTALL:C/.+/'&'/} 2>/dev/null || : ; } \
|
||||
| while read pkgname prfx orgn; do \
|
||||
if [ "/${PREFIX}" = "/$${prfx}" -a "/${PKGORIGIN}" != "/$${orgn}" ]; then \
|
||||
${ECHO_CMD} -n " $${pkgname}"; \
|
||||
|
Loading…
Reference in New Issue
Block a user