install_symlink_html_docs(): Additional fix for compatibility with subslots.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Wed, 24 Oct 2012 21:00:20 +0000 (23:00 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Wed, 24 Oct 2012 21:00:20 +0000 (23:00 +0200)
bin/misc-functions.sh

index f3b0cc0a3f98539edc8969b7578d33a31d5b781a..9b280588cf2f9443c039dd1f74b4abf006a6837f 100755 (executable)
@@ -31,7 +31,7 @@ install_symlink_html_docs() {
                done
                if [ -n "${mydocdir}" ] ; then
                        local mysympath
-                       if [ -z "${SLOT}" -o "${SLOT}" = "0" ] ; then
+                       if [ -z "${SLOT}" -o "${SLOT%/*}" = "0" ] ; then
                                mysympath="${DOC_SYMLINKS_DIR}/${CATEGORY}/${PN}"
                        else
                                mysympath="${DOC_SYMLINKS_DIR}/${CATEGORY}/${PN}-${SLOT%/*}"