summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/utils/fs_related.py14
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 @@
16# with this program; if not, write to the Free Software Foundation, Inc., 59 16# with this program; if not, write to the Free Software Foundation, Inc., 59
17# Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19from __future__ import with_statement
20import os
21import errno
22
23from wic.utils.oe.misc import exec_cmd 19from wic.utils.oe.misc import exec_cmd
24 20
25def makedirs(dirname):
26 """A version of os.makedirs() that doesn't throw an
27 exception if the leaf directory already exists.
28 """
29 try:
30 os.makedirs(dirname)
31 except OSError, err:
32 if err.errno != errno.EEXIST:
33 raise
34
35class DiskImage(): 21class DiskImage():
36 """ 22 """
37 A Disk backed by a file. 23 A Disk backed by a file.