From bf4189eb80246b3fc1fe0cf90cd790ac0b1e0e56 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Apr 2010 22:10:22 +1000 Subject: build: we need this isinstance() check for distcheck Jelmer, this works around a bug in waf distcheck that will be fixed soon. We really need the isinstance() check for now. --- buildtools/wafsamba/samba_dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildtools/wafsamba/samba_dist.py') diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py index 68fdf08b80..b4a6cbb240 100644 --- a/buildtools/wafsamba/samba_dist.py +++ b/buildtools/wafsamba/samba_dist.py @@ -19,7 +19,7 @@ def add_tarfile(tar, fname, abspath): def dist(appname='',version=''): - if not appname: + if not isinstance(appname, str) or not appname: # this copes with a mismatch in the calling arguments for dist() appname = Utils.g_module.APPNAME version = Utils.g_module.VERSION -- cgit