summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2022-08-16 19:20:06 +0000
committerrillig <rillig@pkgsrc.org>2022-08-16 19:20:06 +0000
commitc145080be4b23253ad8c54700636915f5a6487a1 (patch)
tree6a2cd49a98f0551bf187b699b7166e39392d6ba9 /pkgtools
parent9abde3e9026b846ca0505342cb06df824330aa2c (diff)
downloadpkgsrc-c145080be4b23253ad8c54700636915f5a6487a1.tar.gz
lintpkgsrc: cleanup: rename subroutine
Scanning the distfiles is not the main action.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/lintpkgsrc/files/lintpkgsrc.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
index afac5e626ca..e7a1cdf6e43 100755
--- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
+++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl
@@ -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>.
#
@@ -1143,10 +1143,10 @@ sub check_distinfo_hash($entry, $pkgpath, $distfiles, $warnings) {
}
}
-# 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};