summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/perl_checker.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-04 22:11:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-04 22:11:57 +0000
commit4709dc6a4005bda226fb9c7b73282468d2c5d836 (patch)
treecc69c7ed351effc87baf21b045019275e8f9deda /perl_checker.src/perl_checker.ml
parenta9a9b4fe62d034bcc8692d14289386bd4024d021 (diff)
downloadperl-MDK-Common-4709dc6a4005bda226fb9c7b73282468d2c5d836.tar
perl-MDK-Common-4709dc6a4005bda226fb9c7b73282468d2c5d836.tar.gz
perl-MDK-Common-4709dc6a4005bda226fb9c7b73282468d2c5d836.tar.bz2
perl-MDK-Common-4709dc6a4005bda226fb9c7b73282468d2c5d836.tar.xz
perl-MDK-Common-4709dc6a4005bda226fb9c7b73282468d2c5d836.zip
handle "use lib qw(...)"
Diffstat (limited to 'perl_checker.src/perl_checker.ml')
-rw-r--r--perl_checker.src/perl_checker.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/perl_checker.ml b/perl_checker.src/perl_checker.ml
index f328b32..bf4853d 100644
--- a/perl_checker.src/perl_checker.ml
+++ b/perl_checker.src/perl_checker.ml
@@ -51,7 +51,7 @@ and parse_package_if_needed state (package_name, pos) =
if List.mem_assoc package_name state.per_package then [], state else
try
let package = snd (List.hd state.per_package) in
- let inc = inc package.file_name package.package_name package.has_package_name in
+ let inc = !Tree.use_lib @ inc package.file_name package.package_name package.has_package_name in
if List.mem package_name !ignored_packages then [], state
else
let rel_file = String.concat "/" (split_at2 ':'':' package_name) ^ ".pm" in