summaryrefslogtreecommitdiffstats
path: root/os-plugins/slxos-plugin
diff options
context:
space:
mode:
authorOliver Tappe2008-07-23 20:27:33 +0200
committerOliver Tappe2008-07-23 20:27:33 +0200
commitc13e5631307f48236be9155aea76fc9951741020 (patch)
tree8b864474bc810a039df5bfec4cb4f67b6ac18c84 /os-plugins/slxos-plugin
parentvmchooser changes: (diff)
downloadcore-c13e5631307f48236be9155aea76fc9951741020.tar.gz
core-c13e5631307f48236be9155aea76fc9951741020.tar.xz
core-c13e5631307f48236be9155aea76fc9951741020.zip
implemented plugin dependency handling:
* installing a plugin into a vendor-OS is now only possible when required plugins are already installed * removing a plugin from a vendor-OS is now only possible when now plugins that depend on this one are still installed * the config-demuxer will check the plugin depedency hierarchy and bail if any plugin is missing * when several plugins are being auto-installed (e.g. when copying all plugins from the '<<<default>>>' vendor-OS) the order of the plugins is adjusted to comply with the dependency hierarchy * declared one single dependency: vmchooser depends on vmware (please shout if that is incorrect) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1936 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/slxos-plugin')
-rwxr-xr-xos-plugins/slxos-plugin8
1 files changed, 7 insertions, 1 deletions
diff --git a/os-plugins/slxos-plugin b/os-plugins/slxos-plugin
index 2b87e814..7d85bf68 100755
--- a/os-plugins/slxos-plugin
+++ b/os-plugins/slxos-plugin
@@ -109,7 +109,13 @@ if ($action =~ m[^list-at]i) {
my $fill = ' ' x 12;
chomp(my $descr = $pluginInfo->{$_}->{description} || '');
$descr =~ s{\n}{\n$fill}igms;
- "\n\t$_\n\t $descr\n";
+ my $pluginStr = "$_";
+ my $required = $pluginInfo->{$_}->{required} || [];
+ if (@$required) {
+ $pluginStr
+ .= _tr(' (requires: %s)', join(',', @$required));
+ }
+ "\n\t$pluginStr\n\t $descr\n";
}
else {
"\t$_\n";