diff options
author | wiz <wiz> | 2002-07-02 13:16:30 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-07-02 13:16:30 +0000 |
commit | b45a66b94a7e92c9353c850232f7de234a8d013d (patch) | |
tree | 622edc7cbf69f62251261b7b593e45c5cef09704 /pkgtools/pkglint/files | |
parent | c236e2829bbf68973bd4beb7585fe24d153c414a (diff) | |
download | pkgsrc-b45a66b94a7e92c9353c850232f7de234a8d013d.tar.gz |
3.27: Warn about missing RCS Id in distinfo, and note that IS_INTERACTIVE
is deprecated.
Diffstat (limited to 'pkgtools/pkglint/files')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index df44dc9457a..284d6bde5d4 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -12,7 +12,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.66 2002/04/08 13:57:14 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.67 2002/07/02 13:16:32 wiz Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -285,6 +285,10 @@ sub checkdistinfo { local(%indistinfofile); open(SUM,"<$portdir/$file") || return 0; + $_ = <SUM>; + if (! /^\$NetBSD(:.*|)\$$/) { + &perror("FATAL: missing RCS Id in distinfo file: $_"); + } while(<SUM>) { next if !/^(MD5|SHA1|RMD160) \(([^)]+)\) = (.*)$/; $alg=$1; @@ -661,18 +665,23 @@ sub checkmakefile { "DISTINFO: $distinfo\n") if ($verbose); # - # whole file: IS_INTERACTIVE + # whole file: INTERACTIVE_STAGE # $whole =~ s/\n#[^\n]*/\n/g; $whole =~ s/\n\n+/\n/g; - print "OK: checking IS_INTERACTIVE.\n" if ($verbose); - if ($whole =~ /\nIS_INTERACTIVE/) { + print "OK: checking INTERACTIVE_STAGE.\n" if ($verbose); + if ($whole =~ /\nINTERACTIVE_STAGE/) { if ($whole !~ /defined\((BATCH|FOR_CDROM)\)/) { - &perror("WARN: use of IS_INTERACTIVE discouraged. ". + &perror("WARN: use of INTERACTIVE_STAGE discouraged. ". "provide batch mode by using BATCH and/or ". "FOR_CDROM."); } } + print "OK: checking IS_INTERACTIVE.\n" if ($verbose); + if ($whole =~ /\nIS_INTERACTIVE/) { + &perror("FATAL: IS_INTERACTIVE is deprecated, ". + "use INTERACTIVE_STAGE instead."); + } print "OK: checking for PLIST_SRC.\n" if ($verbose); if ($whole =~ /\nPLIST_SRC/) { $seen_PLIST_SRC=1; |