diff options
author | Luca Pizzamiglio <pizzamig@FreeBSD.org> | 2019-06-10 13:54:40 +0000 |
---|---|---|
committer | Luca Pizzamiglio <pizzamig@FreeBSD.org> | 2019-06-10 13:54:40 +0000 |
commit | 81826cc2efb386cf4a0eabb08342fec778b1c874 (patch) | |
tree | 96cf0201db57b56b5cbe239843849dee00886478 /Tools | |
parent | 8d842276fc1a0e24831e1ceffeae30e3a7580b38 (diff) | |
download | freebsd-ports-81826cc2efb386cf4a0eabb08342fec778b1c874.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"); |