Commit 2a9073fd authored by Marco Mariani's avatar Marco Mariani

retrieve installed packages from envvar: $ZIMBRA_INSTALLED_PKGS

parent 3b024be8
...@@ -607,10 +607,13 @@ sub isEnabled { ...@@ -607,10 +607,13 @@ sub isEnabled {
sub isInstalled { sub isInstalled {
my $pkg = shift; my $pkg = shift;
# XXX SLAPOS hardcode the installed packages. if (exists $ENV{'ZIMBRA_INSTALLED_PKGS'}) {
if ($pkg eq "zimbra-store" || $pkg eq "zimbra-core") { for my $p ( split(/ /, $ENV{'ZIMBRA_INSTALLED_PKGS'}) ) {
return 1; if ($p eq $pkg) {
} return 1;
};
};
};
my $pkgQuery; my $pkgQuery;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment