summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabien Tassin <fta@sofaraway.org>2008-06-06 19:54:19 +0200
committerFabien Tassin <fta@sofaraway.org>2008-06-06 19:54:19 +0200
commit16cd93f6f489c2ad0102c1ca9eca897301aa005e (patch)
tree802a9012bcb4889ba9a44add577de0bd9130be31 /src
parent990f51934a1f06752e85a742f89852048b8bacdf (diff)
* [mozclient] run an optional package specific clean-up script. It should be called
src/mozclient/${pkg_name}-remove.binonly.sh - update src/mozclient/lib/MozClient/VCS.pm
Diffstat (limited to 'src')
-rw-r--r--src/mozclient/lib/MozClient/VCS.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mozclient/lib/MozClient/VCS.pm b/src/mozclient/lib/MozClient/VCS.pm
index bfb788b..9308c04 100644
--- a/src/mozclient/lib/MozClient/VCS.pm
+++ b/src/mozclient/lib/MozClient/VCS.pm
@@ -272,6 +272,16 @@ sub nobin_cleanup {
my $cmd = sprintf "sh %s > REMOVED+${nobinonly}.txt 2>&1",
$self->{'MOZCLIENT_EXCLUDE_SCRIPT'};
$self->run_shell($cmd);
+
+ # Run a package specific clean-up script, if any
+ my $pkg_script = $self->{'MOZCLIENT_EXCLUDE_SCRIPT'};
+ $pkg_script =~ m,/([^/]*)$,;
+ my $pkg = $self->{'MOZCLIENT_APPNAME'} . '-' . $1;
+ $pkg_script =~ s,(.*)/.*,$1/$pkg,;
+ $self->run_shell("sh $pkg_script >> REMOVED+${nobinonly}.txt 2>&1")
+ if -e $pkg_script;
+
+ # Remove the log if it's empty
$self->unlink("REMOVED+${nobinonly}.txt")
unless -s "REMOVED+${nobinonly}.txt";
$self->chdir("../..");