From 0f4349e65a10949139b15a57d2fa114e42ed6f4b Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 8 Oct 2014 21:52:22 +0200 Subject: [PATCH] [DEBUG] correction of missing file in dependency --- lutinDepend.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lutinDepend.py b/lutinDepend.py index 995a71c..a3740cd 100644 --- a/lutinDepend.py +++ b/lutinDepend.py @@ -29,6 +29,11 @@ def need_re_build(dst, src, dependFile=None, file_cmd="", cmdLine=""): and os.path.exists(dst) == False: debug.verbose(" ==> must rebuild (dst does not exist)") return True + if dst != "" \ + and dst != None \ + and os.path.exists(src) == False: + debug.warning(" ==> unexistant file :'" + src + "'") + return True # chek the basic date if the 2 files if dst != "" \ and dst != None \