1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

bitbake: utils: Let mkdirhier fail if existing path is not a folder

Let mkdirhier fail if existing path is not a folder instead of assuming a
directory hierarchy already exists.

(Bitbake rev: a8d9b82ccf93dcb74258693f62d88be380b1c0b7)

Signed-off-by: Andre Rosa <andre.rosa@lge.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andre Rosa
2019-04-11 20:20:54 +00:00
committed by Richard Purdie
parent 093fdcb35d
commit 9be9876760
+1 -1
View File
@@ -734,7 +734,7 @@ def mkdirhier(directory):
try:
os.makedirs(directory)
except OSError as e:
if e.errno != errno.EEXIST:
if e.errno != errno.EEXIST or not os.path.isdir(directory):
raise e
def movefile(src, dest, newmtime = None, sstat = None):