aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2009-08-26 04:29:49 +0000
committerAlistair Bush <ali_bush@gentoo.org>2009-08-26 04:29:49 +0000
commit8020f06b51f5089d8ee3a8b3afc4a4a109e717e3 (patch)
tree61d3bcc9b7df8da6ed105c32f62bc073c9491337
parentFixed bug #273284 (diff)
downloadjava-config-8020f06b51f5089d8ee3a8b3afc4a4a109e717e3.tar.gz
java-config-8020f06b51f5089d8ee3a8b3afc4a4a109e717e3.tar.bz2
java-config-8020f06b51f5089d8ee3a8b3afc4a4a109e717e3.zip
Improved message to be displayed to user running java-config -L
svn path=/projects/java-config-2/trunk/; revision=7897
-rwxr-xr-xsrc/java-config-215
1 files changed, 11 insertions, 4 deletions
diff --git a/src/java-config-2 b/src/java-config-2
index a2a4d09..bf74a2a 100755
--- a/src/java-config-2
+++ b/src/java-config-2
@@ -142,11 +142,18 @@ def list_available_vms(option, opt, value, parser):
printer._print('%HThe following VMs are available for generation-2:%$')
for i, vm in vm_list.iteritems():
- if not vm.is_build_only():
- if vm is active:
- printer._print('%G' + '*)\t%s [%s]%s' % (vm.query('VERSION'), vm.name(), '%$'))
- else:
+ if vm is active:
+ printer._print('%G' + '*)\t%s [%s]%s' % (vm.query('VERSION'), vm.name(), '%$'))
+ else:
+ if not vm.is_build_only():
printer._print('%i)\t%s [%s]' % (i, vm.query('VERSION'), vm.name()))
+ else:
+ printer._print('%i)\t%s [%s]' % (i, vm.query('VERSION'), vm.name()) + '%r (Build Only)')
+
+ printer._print('')
+ printer._print('%r' + 'VMs marked as Build Only may contain Security Vulnerabilities and/or be EOL.')
+ printer._print('%r' + 'Gentoo recommends not setting these VMs as either your System or User VM.')
+ printer._print('%r' + 'Please see http://www.gentoo.org/doc/en/java.xml#build-only for more information')
def print_environment(option, opt, value, parser):
vm = manager.get_vm(value)