build: we need this isinstance() check for distcheck
authorAndrew Tridgell <tridge@samba.org>
Thu, 8 Apr 2010 12:10:22 +0000 (22:10 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 8 Apr 2010 12:11:50 +0000 (22:11 +1000)
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

index 68fdf08b804719db051bbc51e103693a2d4196a8..b4a6cbb2405e1b8d9685b5b4792ceeeec73ae3a2 100644 (file)
@@ -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