Tools/script/addport: Fix usage with multiple directories
PR: 238379 Submitted by: me Approved by: crees@
This commit is contained in:
parent
8d842276fc
commit
81826cc2ef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=503896
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user