Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 07/13] fileops: fix passing of gid/uid/minimal args
Date: Tue, 06 Oct 2015 15:05:57
Message-Id: 1444143929-26705-7-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 01/13] lint: fix duplicate fcntl import by Mike Frysinger
1 This func accepted these kwargs but forgot to pass them along to the
2 snakeoil layer.
3 ---
4 catalyst/fileops.py | 2 +-
5 1 file changed, 1 insertion(+), 1 deletion(-)
6
7 diff --git a/catalyst/fileops.py b/catalyst/fileops.py
8 index 8a05985..5a1d0f3 100644
9 --- a/catalyst/fileops.py
10 +++ b/catalyst/fileops.py
11 @@ -42,7 +42,7 @@ def ensure_dirs(path, gid=-1, uid=-1, mode=0o755, minimal=True,
12 :return: True if the directory could be created/ensured to have those
13 permissions, False if not.
14 '''
15 - succeeded = snakeoil_ensure_dirs(path, gid=-1, uid=-1, mode=mode, minimal=True)
16 + succeeded = snakeoil_ensure_dirs(path, gid=gid, uid=uid, mode=mode, minimal=minimal)
17 if not succeeded:
18 if failback:
19 failback()
20 --
21 2.5.2