aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2003-09-02 15:33:46 +0000
committerMathieu Arnold <mat@FreeBSD.org>2003-09-02 15:33:46 +0000
commitdd5899bd4d4a710a06e8c3d72009eae50b4887ad (patch)
treeb7cee8928d962dbdf367c3a867016426f821bfec /Tools
parentade035b084eb30b6c84b004150e9448460d9d38e (diff)
downloadports-dd5899bd4d4a710a06e8c3d72009eae50b4887ad.tar.gz
ports-dd5899bd4d4a710a06e8c3d72009eae50b4887ad.zip
When using addport on freefall, there's no need to ssh freefall once more to
use modulesupdate. Approved by: will
Notes
Notes: svn path=/head/; revision=88364
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index ee5a873c697b..a733b5eb0ad8 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};