diff options
author | Tom Rini <trini@konsulko.com> | 2018-05-16 17:32:59 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-16 17:32:59 -0400 |
commit | 00ef2cd6c7bcad475522e047105f41174fceb2af (patch) | |
tree | aac7158caefeeaac15df5442bf5daff56c666777 /tools/buildman/builderthread.py | |
parent | f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d (diff) | |
parent | f717b4c8e7fc871573755a05be96c8ef857eabce (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/buildman/builderthread.py')
-rw-r--r-- | tools/buildman/builderthread.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index fa9dec043a..0efe80d945 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -6,6 +6,7 @@ import errno import glob import os import shutil +import sys import threading import command @@ -26,6 +27,9 @@ def Mkdir(dirname, parents = False): os.mkdir(dirname) except OSError as err: if err.errno == errno.EEXIST: + if os.path.realpath('.') == os.path.realpath(dirname): + print "Cannot create the current working directory '%s'!" % dirname + sys.exit(1) pass else: raise |