[oe-commits] [bitbake] branch master-next updated: utils: Let mkdirhier fail if existing path is not a folder
git at git.openembedded.org
git at git.openembedded.org
Thu Apr 11 20:44:19 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
The following commit(s) were added to refs/heads/master-next by this push:
new a8d9b82 utils: Let mkdirhier fail if existing path is not a folder
a8d9b82 is described below
commit a8d9b82ccf93dcb74258693f62d88be380b1c0b7
Author: Andre Rosa <andre.rosa at lge.com>
AuthorDate: Thu Apr 11 20:20:54 2019 +0000
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.
Signed-off-by: Andre Rosa <andre.rosa at lge.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index d186b1f..a3f75fb 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list