Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Nov 2010 21:01:02 -0500
From:      Eitan Adler <lists@eitanadler.com>
To:        freebsd ports <freebsd-ports@freebsd.org>
Subject:   [patch] Port lint shouldn't report that 'work' isn't in cvs
Message-ID:  <AANLkTimcRWhWx3_oq4mOG0sLyOOjTKTm%2BTrPqmpQ1_Xq@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
portlint currently reports two conflicting messages when it finds a
"work" directory in a port
a) Make sure it isn't committed
b) It was not found in CVS

This patch silences the second one

--- portlint.old	2010-11-05 14:02:28.000000000 -0400
+++ portlint	2010-11-07 20:58:57.000000000 -0500
@@ -464,7 +464,7 @@
 				if /^(?:\.\.?|CVS)$/;
 			my $filename = $dir eq '.' ? $_ : "$dir/$_";
 			if (-d $filename) {
-				if (!$entries{$_} || $entries{$_} ne 'D') {
+				if ((!$entries{$_} || $entries{$_} ne 'D') && $filename ne 'work') {
 					&perror("FATAL", "", -1, "directory $filename not in CVS.");
 				}
 				else {


-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimcRWhWx3_oq4mOG0sLyOOjTKTm%2BTrPqmpQ1_Xq>