use ${PKGPATH} instead of ${CATEGORIES}/${PKGBASE}

Some packages are in multiple categories (one example is
devel/libgetopt). This broke the IF statement because
${CATEGORIES} got expanded to "cat1 cat2". The proper
variable to use is PKGPATH.
This commit is contained in:
Thomas Cort 2011-06-27 16:01:38 +00:00 committed by Ben Gras
parent 69bf8e4f71
commit 55c7e24c74

View file

@ -14,7 +14,7 @@ PKG_REQUIRES_MINIX_LIBC=no
# Search PKGS_REQUIRING_MINIX_LIBC to see if it needs Minix libc # Search PKGS_REQUIRING_MINIX_LIBC to see if it needs Minix libc
.for PKG_REQUIRING_MINIX_LIBC in ${PKGS_REQUIRING_MINIX_LIBC} .for PKG_REQUIRING_MINIX_LIBC in ${PKGS_REQUIRING_MINIX_LIBC}
.if "${PKG_REQUIRING_MINIX_LIBC}" == "${CATEGORIES}/${PKGBASE}" .if "${PKG_REQUIRING_MINIX_LIBC}" == "${PKGPATH}"
PKG_REQUIRES_MINIX_LIBC=yes PKG_REQUIRES_MINIX_LIBC=yes
.endif .endif
.endfor .endfor