sys-libs/ncurses: use the same has_version test #566008
authorMike Frysinger <vapier@gentoo.org>
Tue, 24 Nov 2015 17:30:12 +0000 (12:30 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 24 Nov 2015 17:30:12 +0000 (12:30 -0500)
The previous commit f5b7039a9bc8c63240340b947c80393e92e21afe added the
:0 slot qualifier to the first has_version test but not to the second.
This breaks when building ncurses-6.0:0 on a system that has SLOT=5
already installed.

sys-libs/ncurses/ncurses-6.0-r1.ebuild

index 9b5613869e457568967852a9c6b297d36490cd46..47c80c494307d609335b8a785f7c8831333f2048 100644 (file)
@@ -188,7 +188,7 @@ do_configure() {
 
 src_compile() {
        # See comments in src_configure.
-       if ! ROOT=/ has_version "~sys-libs/${P}" ; then
+       if ! ROOT=/ has_version "~sys-libs/${P}:0" ; then
                BUILD_DIR="${WORKDIR}" \
                do_compile cross -C progs tic
        fi