diff options
author | pizzamig <pizzamig@FreeBSD.org> | 2019-06-10 21:54:40 +0800 |
---|---|---|
committer | pizzamig <pizzamig@FreeBSD.org> | 2019-06-10 21:54:40 +0800 |
commit | f25e0729e730b308798d3c042b11d90e59637c5c (patch) | |
tree | 96cf0201db57b56b5cbe239843849dee00886478 /Tools | |
parent | d8002b3a3e0dfe82f2a593cbaca999e767acb3fb (diff) | |
download | freebsd-ports-gnome-f25e0729e730b308798d3c042b11d90e59637c5c.tar.gz freebsd-ports-gnome-f25e0729e730b308798d3c042b11d90e59637c5c.tar.zst freebsd-ports-gnome-f25e0729e730b308798d3c042b11d90e59637c5c.zip |
Tools/script/addport: Fix usage with multiple directories
PR: 238379
Submitted by: me
Approved by: crees@
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index a53c19a0b8ab..60ea68c80aa1 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -331,7 +331,9 @@ foreach my $thisdir (@dirs) { # let's get our hands dirty. if (! -d "ports") { system("$svn co --depth empty $repo ports") && errx(1, "can't get ports root, aborting."); - chdir "ports" or err(1,"ports"); + } + chdir "ports" or err(1,"ports"); + if (! -d "$category") { system("$svn up --depth files $category") && errx(1, "can't get temporary category directory, aborting."); } chdir $category or err(1,"$category"); |