[gnome-continuous-yocto/gnomeostree-3.28-rocko: 78/8267] wic: get rid of fs_related.makedirs
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 78/8267] wic: get rid of fs_related.makedirs
- Date: Sat, 16 Dec 2017 19:55:22 +0000 (UTC)
commit f3180152a4a68f4d78fb5f0f222239c351ee7318
Author: Ed Bartosh <ed bartosh linux intel com>
Date: 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.
(From OE-Core rev: 796b114863ef20fbc89da45dbe6780abe1256f5e)
Signed-off-by: Ed Bartosh <ed bartosh linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
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 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]