From: Michał Górny Date: Mon, 27 Sep 2010 18:24:45 +0000 (+0200) Subject: doman: ${mandir} can't contain complete suffix so don't check for it. X-Git-Tag: v2.1.9.13~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a223e9d7da5567b26196a87517820cd46516ee3;p=portage.git doman: ${mandir} can't contain complete suffix so don't check for it. We're appending only a single character of manfile suffix to ${mandir}, so we don't need to expect having anything more in there. --- diff --git a/bin/ebuild-helpers/doman b/bin/ebuild-helpers/doman index 1862f83e1..11333be4f 100755 --- a/bin/ebuild-helpers/doman +++ b/bin/ebuild-helpers/doman @@ -42,7 +42,7 @@ for x in "$@" ; do fi - if [[ ${mandir} =~ man[0-9n](f|p|pm)?$ ]] ; then + if [[ ${mandir} == *man[0-9n] ]] ; then if [[ -s ${x} ]] ; then if [[ ! -d ${D}/usr/share/man/${mandir} ]] ; then install -d "${D}/usr/share/man/${mandir}"