diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-17 14:03:13 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-18 15:09:47 +1100 |
commit | c7456013b970cf07a517c006d7f38713631d838d (patch) | |
tree | 0a4b8390194913be913d78c61a86e1104359b75f | |
parent | 13f287fbc2ce4d92c9c2da328250bb38e9266ad7 (diff) | |
download | samba-c7456013b970cf07a517c006d7f38713631d838d.tar.gz samba-c7456013b970cf07a517c006d7f38713631d838d.tar.bz2 samba-c7456013b970cf07a517c006d7f38713631d838d.zip |
waf: give a more sensible error on symlink_bin with missing directory
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | buildtools/wafsamba/samba_install.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_install.py b/buildtools/wafsamba/samba_install.py index 5902d731f6..f25fd543e3 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) |