/[gentoo-x86]/eclass/cvs.eclass
Gentoo

Diff of /eclass/cvs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.29 Revision 1.31
1# Copyright 1999-2000 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.31 2003/02/16 04:26:21 vapier Exp $
4#
3# Author Dan Armak <danarmak@gentoo.org> 5# Author Dan Armak <danarmak@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.29 2002/12/22 12:06:00 danarmak Exp $ 6#
5# This eclass provides the generic cvs fetching functions. 7# This eclass provides the generic cvs fetching functions.
6 8
7ECLASS=cvs 9ECLASS=cvs
8INHERITED="$INHERITED $ECLASS" 10INHERITED="$INHERITED $ECLASS"
9 11
254 256
255 child.sendline(mypasswd) 257 child.sendline(mypasswd)
256 child.expect(pexpect.EOF) 258 child.expect(pexpect.EOF)
257 259
258elif myauth == "pserver": 260elif myauth == "pserver":
261 if "${ECVS_RUNAS}" == "`whoami`":
262 mycommand2 = "cvs login"
263 else:
259 mycommand = "su ${ECVS_RUNAS} -c \"cvs login\"" 264 mycommand2 = "su ${ECVS_RUNAS} -c \"cvs login\""
260 child = pexpect.spawn(mycommand) 265 child = pexpect.spawn(mycommand2)
261 child.expect("CVS password:",mytimeout) 266 child.expect("CVS password:",mytimeout)
262 child.sendline(mypasswd) 267 child.sendline(mypasswd)
263 child.expect(pexpect.EOF) 268 child.expect(pexpect.EOF)
264 269
265 # Logged in - checking out 270 # Logged in - checking out

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20