summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl12
2 files changed, 12 insertions, 4 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 508fb8df28b..24986eba070 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.213 2005/02/04 15:46:58 wiz Exp $
+# $NetBSD: Makefile,v 1.214 2005/02/05 15:39:44 wiz Exp $
#
-DISTNAME= pkglint-3.99
+DISTNAME= pkglint-4.00
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index 7469434c80a..752cb2b10b2 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -1,6 +1,6 @@
#!@PERL@
-# $NetBSD: lintpkgsrc.pl,v 1.95 2005/02/04 15:46:58 wiz Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.96 2005/02/05 15:39:44 wiz Exp $
# Written by David Brownlee <abs@netbsd.org>.
#
@@ -562,7 +562,15 @@ sub list_installed_packages
open(PKG_INFO, 'pkg_info -a|') || fail("Unable to run pkg_info: $!");
while ( <PKG_INFO> )
- { push(@pkgs, (split)[0]); }
+ {
+ my ($pkg);
+ $pkg = (split)[0];
+ # XXX: hack for python and ruby prefix support
+ $pkg =~ s/^py..pth-/py-/;
+ $pkg =~ s/^py..-/py-/;
+ $pkg =~ s/^ruby..-/ruby-/;
+ push(@pkgs, $pkg);
+ }
close(PKG_INFO);
# pkg_install is not in the pkg_info -a output, add it manually