/[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.30
1# Copyright 1999-2000 Gentoo Technologies, Inc. 1# Copyright 1999-2000 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# Author Dan Armak <danarmak@gentoo.org> 3# 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 $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.30 2002/12/31 21:30:19 cretin Exp $
5# This eclass provides the generic cvs fetching functions. 5# This eclass provides the generic cvs fetching functions.
6 6
7ECLASS=cvs 7ECLASS=cvs
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
9 9
254 254
255 child.sendline(mypasswd) 255 child.sendline(mypasswd)
256 child.expect(pexpect.EOF) 256 child.expect(pexpect.EOF)
257 257
258elif myauth == "pserver": 258elif myauth == "pserver":
259 if "${ECVS_RUNAS}" == "`whoami`":
260 mycommand2 = "cvs login"
261 else:
259 mycommand = "su ${ECVS_RUNAS} -c \"cvs login\"" 262 mycommand2 = "su ${ECVS_RUNAS} -c \"cvs login\""
260 child = pexpect.spawn(mycommand) 263 child = pexpect.spawn(mycommand2)
261 child.expect("CVS password:",mytimeout) 264 child.expect("CVS password:",mytimeout)
262 child.sendline(mypasswd) 265 child.sendline(mypasswd)
263 child.expect(pexpect.EOF) 266 child.expect(pexpect.EOF)
264 267
265 # Logged in - checking out 268 # Logged in - checking out

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

  ViewVC Help
Powered by ViewVC 1.1.20