Subject: fix for lintpkgsrc -o
To: None <tech-pkg@netbsd.org>
From: Sebastian Prause <sebastian-p@gmx.net>
List: tech-pkg
Date: 10/04/2003 12:59:31
hi,
here is a little patch that fixes lintpkgsrc -o on NetBSD:
(without this patch is tries to open UNDEFINED/distfiles instead of /usr/pkgsrc/distfiles ...)


--- work/lintpkgsrc     Sat Oct  4 12:51:57 2003
+++ /usr/pkg/bin/lintpkgsrc     Sat Oct  4 12:52:43 2003
@@ -441,7 +441,8 @@

     if ($opt{M})
        { $default_vars->{DISTDIR} = $opt{M}; }
-    $default_vars->{DISTDIR} ||= $default_vars->{PKGSRCDIR}.'/distfiles';
+    else
+        { $default_vars->{DISTDIR} = $default_vars->{PKGSRCDIR}.'/distfiles'; }

     if ($opt{K})
        { $default_vars->{PACKAGES} = $opt{K}; }