summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mozclient/lib/MozClient/VCS.pm17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mozclient/lib/MozClient/VCS.pm b/src/mozclient/lib/MozClient/VCS.pm
index 1471474..29963ec 100644
--- a/src/mozclient/lib/MozClient/VCS.pm
+++ b/src/mozclient/lib/MozClient/VCS.pm
@@ -280,11 +280,24 @@ sub nobin_cleanup {
$self->LOG("MozClient::nobin_cleanup()");
$self->chdir($self->work_dir . "/" . $self->{'MOZCLIENT_MOZDIRNAME'});
- my $cmd = sprintf "sh %s > REMOVED+${nobinonly}.txt 2>&1",
- $self->{'MOZCLIENT_EXCLUDE_SCRIPT'};
if (-e $self->{'MOZCLIENT_EXCLUDE_SCRIPT'}) {
+ my $cmd = sprintf "sh %s > REMOVED+${nobinonly}.txt 2>&1",
+ $self->{'MOZCLIENT_EXCLUDE_SCRIPT'};
$self->run_shell($cmd);
}
+ elsif (defined $INC[1] && $INC[1] =~ m,(.*/mozclient)/,) {
+ my $dir = $1;
+ $self->{'MOZCLIENT_EXCLUDE_SCRIPT'} =~ m,/([^/]*)$,;
+ my $file = $1;
+ if (-e "$dir/$file") {
+ my $cmd = sprintf "sh %s > REMOVED+${nobinonly}.txt 2>&1",
+ "$dir/$file";
+ $self->run_shell($cmd);
+ }
+ else {
+ $self->LOG("*warn* can't find $dir/$file");
+ }
+ }
else {
$self->LOG("*warn* can't find " . $self->{'MOZCLIENT_EXCLUDE_SCRIPT'});
}