diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2013-03-13 06:15:57 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2013-03-13 06:15:57 +0800 |
commit | f9b815ba6f807a70f2b63239b239e2f3166d0528 (patch) | |
tree | 54ca6752d385a0710244e5f2c52f7d0bb8840fea /Mk | |
parent | cdd8745243c14de1c87a13f6262ea3f7cb99ebed (diff) | |
download | freebsd-ports-gnome-f9b815ba6f807a70f2b63239b239e2f3166d0528.tar.gz freebsd-ports-gnome-f9b815ba6f807a70f2b63239b239e2f3166d0528.tar.zst freebsd-ports-gnome-f9b815ba6f807a70f2b63239b239e2f3166d0528.zip |
- 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
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.pkgng.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk index cef9a927f9b8..5c2f10e54e3b 100644 --- a/Mk/bsd.pkgng.mk +++ b/Mk/bsd.pkgng.mk @@ -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}"; \ |