diff options
author | rillig <rillig@pkgsrc.org> | 2015-11-02 18:45:31 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2015-11-02 18:45:31 +0000 |
commit | 32bd594e1be3a93ef5f161d82e878d0a84671ae2 (patch) | |
tree | ad004267cfb3acbe0afa81e0507393e131c5d7f5 /pkgtools/pkglint | |
parent | 3e395af79a068993c6e06504a64c12b5096a99c2 (diff) | |
download | pkgsrc-32bd594e1be3a93ef5f161d82e878d0a84671ae2.tar.gz |
Fixed patch detection in distinfo files
Up to now, all files whose names started with "patch-" were considered
patch files. This was wrong, since e.g. devel/patch also has distfiles
with the same naming pattern.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index d23cb6cf682..3815952d24e 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.895 2015/10/27 21:23:36 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.896 2015/11/02 18:45:31 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -4737,7 +4737,7 @@ sub checkfile_distinfo($) { } } - $is_patch = defined($new_fname) && $new_fname =~ m"^patch-.+$" ? true : false; + $is_patch = defined($new_fname) && $new_fname =~ m"^patch-.+$" && -f "${current_dir}/${patches_dir}/${new_fname}"; $current_fname = $new_fname; @seen_algs = (); }; |