Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 11:59:28 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453895 - head/Tools/scripts
Message-ID:  <201711101159.vAABxS2d062750@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Fri Nov 10 11:59:28 2017
New Revision: 453895
URL: https://svnweb.freebsd.org/changeset/ports/453895

Log:
  Cleanup resurrected processing.
  
  There is no need to have a resurrected array, it is only used once, so
  move the resurrected printf where it belongs.
  
  Sponsored by:	Absolight

Modified:
  head/Tools/scripts/MOVEDlint.awk

Modified: head/Tools/scripts/MOVEDlint.awk
==============================================================================
--- head/Tools/scripts/MOVEDlint.awk	Fri Nov 10 11:59:25 2017	(r453894)
+++ head/Tools/scripts/MOVEDlint.awk	Fri Nov 10 11:59:28 2017	(r453895)
@@ -83,14 +83,12 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
     if (system("test -f " portsdir "/" $1 "/Makefile")) {
         delete missing[$1]
     } else {
-        resurrected[$1] = NR
+        printf "%5d: %s must be marked as resurrected\n", NR, port | sort
     }
 
     if ($2) {
         if (system("test -f " portsdir "/" $2 "/Makefile"))
             missing[$2] = NR
-#        else
-#            delete resurrected[$2]
     }
 
 #    Produces too many false positives
@@ -106,10 +104,6 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
 }
 
 END {
-    for (port in resurrected) {
-        printf "%5d: %s must be marked as resurrected\n", resurrected[port], port | sort
-    }
-
     for (port in missing) {
         printf "%5d: %s not found\n", missing[port], port | sort
         error[missing[port]] = 1



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