[oe-commits] [openembedded-core] 15/31: wic: get rid of fs_related.makedirs
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 29 08:24:22 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 38ea317a45370c35b2a2dda78c816b8ba94ab3dc
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Thu Apr 28 13:58:06 2016 +0300
wic: get rid of fs_related.makedirs
Removed fs_related.makedirs as is not used anywhere. The name is
easy to confuse with os.makedirs.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/lib/wic/utils/fs_related.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/scripts/lib/wic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py
index 22aa294..fc3c174 100644
--- a/scripts/lib/wic/utils/fs_related.py
+++ b/scripts/lib/wic/utils/fs_related.py
@@ -16,22 +16,8 @@
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-from __future__ import with_statement
-import os
-import errno
-
from wic.utils.oe.misc import exec_cmd
-def makedirs(dirname):
- """A version of os.makedirs() that doesn't throw an
- exception if the leaf directory already exists.
- """
- try:
- os.makedirs(dirname)
- except OSError, err:
- if err.errno != errno.EEXIST:
- raise
-
class DiskImage():
"""
A Disk backed by a file.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list