forked from Lainports/freebsd-ports
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue