summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-28 01:27:56 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-28 01:27:56 +0000
commit66e9e06601c5fcbeac9c700b6c0f0462f43e6233 (patch)
tree30ec3f544381fc04a5f1a9aac79e8c52b3dcab8e /bin
parentMake set_term_size() handle the CommandNotFound exception if stty (diff)
downloadportage-multirepo-66e9e06601c5fcbeac9c700b6c0f0462f43e6233.tar.gz
portage-multirepo-66e9e06601c5fcbeac9c700b6c0f0462f43e6233.tar.bz2
portage-multirepo-66e9e06601c5fcbeac9c700b6c0f0462f43e6233.zip
Make the new behavior from bug #222439 conditional on EAPI being something
other than 0 or 1. svn path=/main/trunk/; revision=10462
Diffstat (limited to 'bin')
-rwxr-xr-xbin/doman3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/doman b/bin/doman
index 61040469..24976821 100755
--- a/bin/doman
+++ b/bin/doman
@@ -31,7 +31,8 @@ for x in "$@" ; do
suffix=${realname##*.}
fi
- if [[ $x =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]] ; then
+ if ! hasq "${EAPI:-0}" 0 1 && \
+ [[ $x =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]] ; then
name=${BASH_REMATCH[1]##*/}.${BASH_REMATCH[4]}
mandir=${BASH_REMATCH[2]}/man${suffix:0:1}
else