svn commit: r503896 - head/Tools/scripts

Luca Pizzamiglio pizzamig at FreeBSD.org
Mon Jun 10 13:54:42 UTC 2019


Author: pizzamig
Date: Mon Jun 10 13:54:40 2019
New Revision: 503896
URL: https://svnweb.freebsd.org/changeset/ports/503896

Log:
  Tools/script/addport: Fix usage with multiple directories
  
  PR:		238379
  Submitted by:	me
  Approved by:	crees@

Modified:
  head/Tools/scripts/addport

Modified: head/Tools/scripts/addport
==============================================================================
--- head/Tools/scripts/addport	Mon Jun 10 12:30:03 2019	(r503895)
+++ head/Tools/scripts/addport	Mon Jun 10 13:54:40 2019	(r503896)
@@ -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");


More information about the svn-ports-all mailing list