diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-04-28 13:58:06 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:30:56 +0100 |
commit | 796b114863ef20fbc89da45dbe6780abe1256f5e (patch) | |
tree | 26c222bdc2df83cbcac2cf96211c8484d6aab32c /scripts/lib/wic | |
parent | 5af1d9bedc2c961eb91faf80251f24c3df754d76 (diff) | |
download | openembedded-core-796b114863ef20fbc89da45dbe6780abe1256f5e.tar.gz openembedded-core-796b114863ef20fbc89da45dbe6780abe1256f5e.tar.bz2 openembedded-core-796b114863ef20fbc89da45dbe6780abe1256f5e.zip |
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/utils/fs_related.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/lib/wic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py index 22aa294fa0..fc3c174163 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. |