From: Arno Renevier Date: Mon, 20 Feb 2012 11:33:44 +0000 (+0100) Subject: build process raise an exception when install file contains an invalide filename X-Git-Tag: v0.4.1 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=e0424f1a73703cc35801f8e9cd24d3a4340eca94;ds=sidebyside build process raise an exception when install file contains an invalide filename --- diff --git a/scripts/release.py b/scripts/release.py index 3c5ded2..3b5c9ea 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -95,8 +95,12 @@ def install(source, target): shutil.copy(source, buildtarget) else: + hascontent = False for item in glob.glob(source): + hascontent = True install(item, target) + if not hascontent: # not a directory or a file or a list of files + raise Exception(("%s does not exist" % source)) def main(): if os.path.isdir(__BUILD__):