aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2018-12-30 11:51:32 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-06 12:19:31 +0100
commit35887861388eb7d84998bc27b8b3531ae124c648 (patch)
treea660942e82af38dcd9935ee162a5ef485c9388f2 /mesonbuild/mintro.py
parent84948ea6cd61c54404d6e0df82594a56e19fe01f (diff)
downloadmeson-35887861388eb7d84998bc27b8b3531ae124c648.zip
meson-35887861388eb7d84998bc27b8b3531ae124c648.tar.gz
meson-35887861388eb7d84998bc27b8b3531ae124c648.tar.bz2
Some small fixes
Diffstat (limited to 'mesonbuild/mintro.py')
-rw-r--r--mesonbuild/mintro.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index 4a20e6b..9444b96 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -84,14 +84,14 @@ def list_targets(builddata: build.Build, installdata, backend: backends.Backend)
tlist = []
# Fast lookup table for installation files
- intall_lookuptable = {}
+ install_lookuptable = {}
for i in installdata.targets:
outname = os.path.join(installdata.prefix, i.outdir, os.path.basename(i.fname))
- intall_lookuptable[os.path.basename(i.fname)] = str(pathlib.PurePath(outname))
+ install_lookuptable[os.path.basename(i.fname)] = str(pathlib.PurePath(outname))
for (idname, target) in builddata.get_targets().items():
if not isinstance(target, build.Target):
- raise RuntimeError('Something weird happened. File a bug.')
+ raise RuntimeError('The target object in `builddata.get_targets()` is not of type `build.Target`. Please file a bug with this error message.')
fname = [os.path.join(target.subdir, x) for x in target.get_outputs()]
@@ -107,7 +107,7 @@ def list_targets(builddata: build.Build, installdata, backend: backends.Backend)
if installdata and target.should_install():
t['installed'] = True
# TODO Change this to the full list in a seperate PR
- t['install_filename'] = [intall_lookuptable.get(x, None) for x in target.get_outputs()][0]
+ t['install_filename'] = [install_lookuptable.get(x, None) for x in target.get_outputs()][0]
else:
t['installed'] = False
tlist.append(t)