summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-12-08 22:39:43 +0200
committerTor Lillqvist <tml@iki.fi>2011-12-08 23:40:42 +0200
commitd8280dd06556417f84a8ac97da8fa8838dcbfe41 (patch)
tree2dbaf293800e068e965feb33498807c102dbc27e /solenv/bin
parent99ee003d61df1768eae1d3efeaae80bb2a6d3085 (diff)
We don't use any gbuild.lst files
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/modules/RepositoryHelper.pm21
1 files changed, 9 insertions, 12 deletions
diff --git a/solenv/bin/modules/RepositoryHelper.pm b/solenv/bin/modules/RepositoryHelper.pm
index 76903414104b..605f7ab9ceb9 100644
--- a/solenv/bin/modules/RepositoryHelper.pm
+++ b/solenv/bin/modules/RepositoryHelper.pm
@@ -91,21 +91,18 @@ sub get_initial_directory
sub search_via_build_lst {
my $self = shift;
- my @possible_build_lists = ('gbuild.lst', 'build.lst'); # build lists names
my $previous_dir = '';
my $rep_root_candidate = $self->{INITIAL_DIRECTORY};
do {
- foreach (@possible_build_lists) {
- my $test_file;
- if ($rep_root_candidate eq '/') {
- $test_file = '/prj/' . $_;
- } else {
- $test_file = $rep_root_candidate . '/prj/' . $_;
- };
- if (-e $test_file) {
- $self->{REPOSITORY_ROOT} = File::Basename::dirname($rep_root_candidate);
- return 1;
- };
+ my $test_file;
+ if ($rep_root_candidate eq '/') {
+ $test_file = '/prj/build.lst';
+ } else {
+ $test_file = $rep_root_candidate . '/prj/build.lst';
+ };
+ if (-e $test_file) {
+ $self->{REPOSITORY_ROOT} = File::Basename::dirname($rep_root_candidate);
+ return 1;
};
$previous_dir = $rep_root_candidate;
$rep_root_candidate = File::Basename::dirname($rep_root_candidate);