Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 10:49:36 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302383 - head/Tools/scripts
Message-ID:  <201208101049.q7AAnaSW023110@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Fri Aug 10 10:49:36 2012
New Revision: 302383
URL: http://svn.freebsd.org/changeset/ports/302383

Log:
  Don't replace - with _ in category variable.
  
  This was required with CVS, since the category was checked out as a module, but
  the directory name is used with svn.
  
  For example:
  
  pcvs co ports_ports_mgmt
  
  svn co $ports/head/ports-mgmt
  
  Submitted by:	swills

Modified:
  head/Tools/scripts/addport

Modified: head/Tools/scripts/addport
==============================================================================
--- head/Tools/scripts/addport	Fri Aug 10 10:34:59 2012	(r302382)
+++ head/Tools/scripts/addport	Fri Aug 10 10:49:36 2012	(r302383)
@@ -245,8 +245,7 @@ foreach my $thisdir (@dirs) {
 			} while (prompt("Is the new category $category OK? "));
 		}
 	}
-	chomp(my $svn_category = $category);
-	$svn_category =~ s/-/_/g;
+	chomp $category;
 
 	# Do commitfile checking but only if the user did not request automatic filling.
 	if (!$autofill) {
@@ -321,7 +320,7 @@ foreach my $thisdir (@dirs) {
 
 	# let's get our hands dirty.
 	if (! -d $category) {
-		system("svn co --depth files $repo/$svn_category $category") && errx(1, "can't get temporary category directory, aborting.");
+		system("svn co --depth files $repo/$category $category") && errx(1, "can't get temporary category directory, aborting.");
 	}
 	chdir $category or err(1,"$category");
 	system("$cp -PRp $thisdir .");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208101049.q7AAnaSW023110>