diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-21 23:22:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-21 23:22:56 +0000 |
commit | 6cfb66f63bed2c2270cecb56daf90a5d1117f4d6 (patch) | |
tree | b6d64963ec5d37b98b59a0e3bc529abd010ec8b7 /eclass/cvs.eclass | |
parent | Adding to cpp herd, marking mrness as primary maintainer (diff) | |
download | historical-6cfb66f63bed2c2270cecb56daf90a5d1117f4d6.tar.gz historical-6cfb66f63bed2c2270cecb56daf90a5d1117f4d6.tar.bz2 historical-6cfb66f63bed2c2270cecb56daf90a5d1117f4d6.zip |
only DEPEND on sudo if we use it #79196 by Emil Beinroth
Diffstat (limited to 'eclass/cvs.eclass')
-rw-r--r-- | eclass/cvs.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index 911b974de058..8a952564f26d 100644 --- a/eclass/cvs.eclass +++ b/eclass/cvs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.60 2005/09/21 23:19:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.61 2005/09/21 23:22:56 vapier Exp $ inherit eutils @@ -150,7 +150,9 @@ inherit eutils # add cvs to deps # ssh is used for ext auth # sudo is used to run as a specified user -DEPEND="dev-util/cvs app-admin/sudo" +DEPEND="dev-util/cvs" + +[ -n "$ECVS_RUNAS" ] && DEPEND="$DEPEND app-admin/sudo" if [ "$ECVS_AUTH" == "ext" ]; then #default to ssh |