diff options
| -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 @@ | |||
| 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 | ||
| 19 | from __future__ import with_statement | ||
| 20 | import os | ||
| 21 | import errno | ||
| 22 | |||
| 23 | from wic.utils.oe.misc import exec_cmd | 19 | from wic.utils.oe.misc import exec_cmd |
| 24 | 20 | ||
| 25 | def 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 | |||
| 35 | class DiskImage(): | 21 | class DiskImage(): |
| 36 | """ | 22 | """ |
| 37 | A Disk backed by a file. | 23 | A Disk backed by a file. |
