pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/lintpkgsrc/files



Module Name:    pkgsrc
Committed By:   rillig
Date:           Tue Aug 16 19:20:06 UTC 2022

Modified Files:
        pkgsrc/pkgtools/lintpkgsrc/files: lintpkgsrc.pl

Log Message:
lintpkgsrc: cleanup: rename subroutine

Scanning the distfiles is not the main action.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
diff -u pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.101 pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.102
--- pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl:1.101        Tue Aug 16 19:15:43 2022
+++ pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl      Tue Aug 16 19:20:06 2022
@@ -1,5 +1,5 @@
 #!@PERL5@
-# $NetBSD: lintpkgsrc.pl,v 1.101 2022/08/16 19:15:43 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.102 2022/08/16 19:20:06 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -1143,10 +1143,10 @@ sub check_distinfo_hash($entry, $pkgpath
        }
 }
 
-# Extract all distinfo entries, then verify contents of distfiles
-#
-sub scan_pkgsrc_distfiles_vs_distinfo($pkgsrcdir, $pkgdistdir, $check_unref,
-                                     $check_distinfo) {
+# Verify that the contents of the distfiles directory matches the distinfo
+# files in the packages.
+sub check_pkgsrc_distfiles_vs_distinfo($pkgsrcdir, $pkgdistdir, $check_unref,
+                                      $check_distinfo) {
        my (@categories);
        my (%distfiles, %sumfiles, @distwarn, $numpkg);
        my (%unref_distfiles);
@@ -1376,7 +1376,7 @@ sub debug_parse_makefiles(@args) {
 }
 
 sub check_distfiles($pkgsrcdir, $pkgdistdir) {
-       my @unref_distfiles = scan_pkgsrc_distfiles_vs_distinfo(
+       my @unref_distfiles = check_pkgsrc_distfiles_vs_distinfo(
            $pkgsrcdir, $pkgdistdir, $opt{o}, $opt{m});
 
        return unless $opt{r};



Home | Main Index | Thread Index | Old Index