fix repr for alias_target

It has no command, so you cannot try printing it or it explodes with

IndexError: list index out of range
pull/9202/head
Eli Schwartz 3 years ago
parent 0b63dff3ba
commit 10cfc321f8
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      mesonbuild/build.py

@ -2528,6 +2528,10 @@ class AliasTarget(RunTarget):
def __init__(self, name, dependencies, subdir, subproject):
super().__init__(name, [], dependencies, subdir, subproject)
def __repr__(self):
repr_str = "<{0} {1}>"
return repr_str.format(self.__class__.__name__, self.get_id())
class Jar(BuildTarget):
known_kwargs = known_jar_kwargs

Loading…
Cancel
Save