OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-re Date: 13-Feb-2004 14:05:37 Branch: HEAD Handle: 2004021313053600 Modified files: openpkg-re speclint.pl Log: fix linting Summary: Revision Changes Path 1.65 +2 -2 openpkg-re/speclint.pl ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-re/speclint.pl ============================================================================ $ cvs diff -u -r1.64 -r1.65 speclint.pl --- openpkg-re/speclint.pl 11 Feb 2004 07:13:52 -0000 1.64 +++ openpkg-re/speclint.pl 13 Feb 2004 13:05:36 -0000 1.65 @@ -1231,7 +1231,7 @@ my $str_var = "\$RPM_SOURCE_DIR"; if ($file !~ m/\b(openpkg-.*|openpkg|vim|ncurses|openssh)\.spec$/) { if ($s->{-refhdr} > 0) { - if ($s->{-refcmd} == 0 and $s->{-refmac} == 0 and $s->{-refmac} == 0) { + if ($s->{-refcmd} == 0 and $s->{-refmac} == 0 and $s->{-refvar} == 0) { &lint_error($file, undef, undef, "source \"$str_hdr\" defined (file $s->{-file}), but never used" . " (expected at least one reference via \"$str_cmd\", \"$str_mac\" or \"$str_var\")"); } @@ -1241,7 +1241,7 @@ } } else { - if ($s->{-refcmd}+$s->{-refmac}+$s->{-refmac} > 0) { + if ($s->{-refcmd}+$s->{-refmac}+$s->{-refvar} > 0) { &lint_error($file, undef, undef, "source \"$str_hdr\" not defined, but used ". ($s->{-file} ? "(file ".$s->{-file}.")" : ""). " (expected at least one definition via \"$str_hdr\")"); @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]