From c9d0497bcb31f3a530e4c71a8b22edc75bb9ca99 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@dune-project.org> Date: Tue, 29 May 2012 16:29:55 +0000 Subject: [PATCH] [dunecontrol] - make sure that the module is not a local one before checking if it is installed - fix FS#1100 [[Imported from SVN: r6777]] --- lib/dunemodules.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dunemodules.lib b/lib/dunemodules.lib index d2f41bfc0..6f442c05a 100644 --- a/lib/dunemodules.lib +++ b/lib/dunemodules.lib @@ -69,7 +69,8 @@ parse_control() { # - source module: ${path}/dune.module # and there is a file ${path}/${name}.pc.in local path="$(canonicalpath "$1")" - if test -f $path/../../../lib/dunecontrol/${name}/dune.module; then + if test ! -f $path/dune.module -a \ + -f $path/../../../lib/dunecontrol/${name}/dune.module; then path=$(canonicalname "$path/../../../") export module_inst="yes" fi -- GitLab