add missing leading slash to path component, such that it will match with PATH
authorFabian Groffen <grobian@gentoo.org>
Mon, 22 Feb 2010 19:59:39 +0000 (19:59 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 22 Feb 2010 19:59:39 +0000 (19:59 -0000)
svn path=/main/branches/prefix/; revision=15436

bin/misc-functions.sh

index 2ff53f19efe9915a83cf79a66966ab0267067e66..9d34a2403a6f63381d845731f04526bbfde41a66 100644 (file)
@@ -638,7 +638,7 @@ install_qa_check_prefix() {
                        continue
                fi
                # all else is an error if the found script is in $PATH
-               local fp=${fn#${D}} ; fp=${fp%/*}
+               local fp=${fn#${D}} ; fp=/${fp%/*}
                if [[ ":${PATH}:" == *":${fp}:"* ]] || hasq stricter ${FEATURES} ;
                then
                        echo "${fn#${D}}:${line[0]}" \