summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_install.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-17 14:03:13 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-18 15:09:47 +1100
commitc7456013b970cf07a517c006d7f38713631d838d (patch)
tree0a4b8390194913be913d78c61a86e1104359b75f /buildtools/wafsamba/samba_install.py
parent13f287fbc2ce4d92c9c2da328250bb38e9266ad7 (diff)
downloadsamba-c7456013b970cf07a517c006d7f38713631d838d.tar.gz
waf: give a more sensible error on symlink_bin with missing directory
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools/wafsamba/samba_install.py')
-rw-r--r--buildtools/wafsamba/samba_install.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py
index 5902d731f65..f25fd543e32 100644
--- a/buildtools/wafsamba/samba_install.py
+++ b/buildtools/wafsamba/samba_install.py
@@ -211,6 +211,8 @@ def symlink_bin(self):
return
blddir = os.path.dirname(self.bld.srcnode.abspath(self.bld.env))
+ if not self.link_task.outputs or not self.link_task.outputs[0]:
+ raise Utils.WafError('no outputs found for %s in symlink_bin' % self.name)
binpath = self.link_task.outputs[0].abspath(self.env)
bldpath = os.path.join(self.bld.env.BUILD_DIRECTORY, self.link_task.outputs[0].name)