diff options
author | mat <mat@FreeBSD.org> | 2003-09-02 15:33:46 +0000 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2003-09-02 15:33:46 +0000 |
commit | 0d308782e1e270392c12da30f4ea94bc5bcffa6f (patch) | |
tree | 6b5a7c9a6f16d125e09fa7cc7a808c4c29c57a29 /Tools | |
parent | 3bc0f57757988f5c91669609ad488ff492be70b6 (diff) | |
download | FreeBSD-ports-0d308782e1e270392c12da30f4ea94bc5bcffa6f.zip FreeBSD-ports-0d308782e1e270392c12da30f4ea94bc5bcffa6f.tar.gz |
When using addport on freefall, there's no need to ssh freefall once more to
use modulesupdate.
Approved by: will
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index ee5a873..a733b5e 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -103,7 +103,11 @@ $moduleshost = "freefall.freebsd.org" if ($moduleshost eq ""); # SSH is always required nowadays... pcvs.FreeBSD.org isn't shell accessible. $ssh = "$ENV{CVS_RSH} $h -l $u"; -$sshmod = "$ENV{CVS_RSH} -A $moduleshost -l $u"; +if ($myhost eq $moduleshost) { + $sshmod = ""; +} else { + $sshmod = "$ENV{CVS_RSH} -A $moduleshost -l $u"; +} $repo= "$u\@$h:/home/pcvs" if !$ENV{ADDPCVSROOT}; $repo = "$ENV{ADDPCVSROOT}" if $ENV{ADDPCVSROOT}; |