summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-06-17 16:17:12 +0000
committerrillig <rillig@pkgsrc.org>2006-06-17 16:17:12 +0000
commite99786db650ff7526e32f69fe7616a686a50e9d4 (patch)
tree80ecb2e5b8fc8297108c394438419d62ebeffba9 /pkgtools
parent31c4f7754102c4f775d3a46eb0395b80e0bc6042 (diff)
downloadpkgsrc-e99786db650ff7526e32f69fe7616a686a50e9d4.tar.gz
Fixed the adjustment of the directory depth. The last commit to it
(1.611) had broken the check of pkgsrc infrastructure files.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 9a46e806ff4..e879fcdd454 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.624 2006/06/17 10:03:09 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.625 2006/06/17 16:17:12 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2350,7 +2350,7 @@ sub resolve_relative_path($$) {
$relpath =~ s,\$\{SUSE_DIR_PREFIX\},suse91,;
$relpath =~ s,\$\{PYPKGSRCDIR\},../../lang/python23,;
if ($adjust_depth && $relpath =~ qr"^\.\./\.\./([^.].*)$") {
- $relpath = "../../$1";
+ $relpath = "${pkgsrcdir}/$1";
}
if (defined($pkgdir)) {
$relpath =~ s,\$\{PKGDIR\},$pkgdir,g;