only DEPEND on sudo if we use it #79196 by Emil Beinroth
authorMike Frysinger <vapier@gentoo.org>
Wed, 21 Sep 2005 23:22:56 +0000 (23:22 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 21 Sep 2005 23:22:56 +0000 (23:22 +0000)
eclass/cvs.eclass

index 911b974de058b0420c458c85bf8a98d0cacd1c07..8a952564f26dd7fe508519ace2ddbef374322373 100644 (file)
@@ -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