Skip to content

Commit

Permalink
Fix graalvm-show --stage1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ansalond committed Mar 16, 2020
1 parent 53eeb4f commit b1608d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/mx.sdk/mx_sdk_vm_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ def graalvm_show(args):
parser.add_argument('--stage1', action='store_true', help='show the components for stage1')
args = parser.parse_args(args)

graalvm_dist = get_final_graalvm_distribution()
graalvm_dist = get_stage1_graalvm_distribution() if args.stage1 else get_final_graalvm_distribution()
print("GraalVM distribution: {}".format(graalvm_dist))
print("Version: {}".format(_suite.release_version()))
print("Config name: {}".format(graalvm_dist.vm_config_name))
Expand All @@ -2539,7 +2539,7 @@ def graalvm_show(args):
print("No launcher")

libraries = [p for p in _suite.projects if isinstance(p, GraalVmLibrary)]
if libraries:
if libraries and not args.stage1:
print("Libraries:")
for library in libraries:
suffix = ''
Expand All @@ -2553,15 +2553,15 @@ def graalvm_show(args):
print("No library")

installables = _get_dists(GraalVmInstallableComponent)
if installables:
if installables and not args.stage1:
print("Installables:")
for i in installables:
print(" - {}".format(i))
else:
print("No installable")

standalones = _get_dists(GraalVmStandaloneComponent)
if standalones:
if standalones and not args.stage1:
print("Standalones:")
for s in standalones:
print(" - {}".format(s))
Expand Down

0 comments on commit b1608d2

Please sign in to comment.