summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2010-01-25 11:34:49 +0100
committerVladimir Glazunov <vg@openoffice.org>2010-01-25 11:34:49 +0100
commit703aa707b342139eab23e607bd905a9442ff86d6 (patch)
treec4a8655e71e73cbf53a62decb33b5051169c3b4b /solenv
parent420538a137f8c2e9c2c8d6351b05d958f9e0e677 (diff)
#i107041# add start root directory as a repository
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/SourceConfig.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/solenv/bin/modules/SourceConfig.pm b/solenv/bin/modules/SourceConfig.pm
index 5c8dc89a641c..088005e43d7b 100644
--- a/solenv/bin/modules/SourceConfig.pm
+++ b/solenv/bin/modules/SourceConfig.pm
@@ -75,6 +75,9 @@ sub new {
$self->{ACTIVATED_MODULES} = {};
$self->{MODULE_REPOSITORY} = {};
$self->{REAL_MODULES} = {};
+ if (defined $self->{USER_SOURCE_ROOT}) {
+ ${$self->{REPOSITORIES}}{File::Basename::basename($self->{USER_SOURCE_ROOT})} = $self->{USER_SOURCE_ROOT};
+ };
$self->{SOURCE_CONFIG_FILE} = get_config_file($source_root);
$self->{SOURCE_CONFIG_DEFAULT} = $source_root .'/'.SOURCE_CONFIG_FILE_NAME;
read_config_file($self);