From: "Brian Dolbec" <dolsen@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/catalyst:pending commit in: catalyst/ Date: Tue, 1 Sep 2015 05:58:57 +0000 (UTC) [thread overview] Message-ID: <1441082455.8035e2073b3bb7ca3125627a9671b63239f0537f.dolsen@gentoo> (raw) commit: 8035e2073b3bb7ca3125627a9671b63239f0537f Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Tue Sep 1 04:39:38 2015 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Tue Sep 1 04:40:55 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=8035e207 fileops.py: Fix a bug where the mode was not being passed Change the default mode to 0o755 catalyst/fileops.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalyst/fileops.py b/catalyst/fileops.py index fd98db2..129d967 100644 --- a/catalyst/fileops.py +++ b/catalyst/fileops.py @@ -21,7 +21,7 @@ from snakeoil.osutils import (ensure_dirs as snakeoil_ensure_dirs, from catalyst.support import CatalystError -def ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True, +def ensure_dirs(path, gid=-1, uid=-1, mode=0o755, minimal=True, failback=None, fatal=False): '''Wrapper to snakeoil.osutil's ensure_dirs() This additionally allows for failures to run @@ -40,7 +40,7 @@ def ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True, :return: True if the directory could be created/ensured to have those permissions, False if not. ''' - succeeded = snakeoil_ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True) + succeeded = snakeoil_ensure_dirs(path, gid=-1, uid=-1, mode=mode, minimal=True) if not succeeded: if failback: failback() @@ -50,7 +50,7 @@ def ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True, return succeeded -def clear_dir(target, mode=0755, chg_flags=False, remove=False): +def clear_dir(target, mode=0o755, chg_flags=False, remove=False): '''Universal directory clearing function @target: string, path to be cleared or removed
WARNING: multiple messages have this Message-ID (diff)
From: "Brian Dolbec" <dolsen@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/ Date: Tue, 1 Sep 2015 04:50:23 +0000 (UTC) [thread overview] Message-ID: <1441082455.8035e2073b3bb7ca3125627a9671b63239f0537f.dolsen@gentoo> (raw) Message-ID: <20150901045023.qVtLZT_NPLFp0Oxk5itKijDcxaQUmyif0nSJzS6wCRA@z> (raw) commit: 8035e2073b3bb7ca3125627a9671b63239f0537f Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Tue Sep 1 04:39:38 2015 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Tue Sep 1 04:40:55 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=8035e207 fileops.py: Fix a bug where the mode was not being passed Change the default mode to 0o755 catalyst/fileops.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalyst/fileops.py b/catalyst/fileops.py index fd98db2..129d967 100644 --- a/catalyst/fileops.py +++ b/catalyst/fileops.py @@ -21,7 +21,7 @@ from snakeoil.osutils import (ensure_dirs as snakeoil_ensure_dirs, from catalyst.support import CatalystError -def ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True, +def ensure_dirs(path, gid=-1, uid=-1, mode=0o755, minimal=True, failback=None, fatal=False): '''Wrapper to snakeoil.osutil's ensure_dirs() This additionally allows for failures to run @@ -40,7 +40,7 @@ def ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True, :return: True if the directory could be created/ensured to have those permissions, False if not. ''' - succeeded = snakeoil_ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True) + succeeded = snakeoil_ensure_dirs(path, gid=-1, uid=-1, mode=mode, minimal=True) if not succeeded: if failback: failback() @@ -50,7 +50,7 @@ def ensure_dirs(path, gid=-1, uid=-1, mode=0777, minimal=True, return succeeded -def clear_dir(target, mode=0755, chg_flags=False, remove=False): +def clear_dir(target, mode=0o755, chg_flags=False, remove=False): '''Universal directory clearing function @target: string, path to be cleared or removed
next reply other threads:[~2015-09-01 5:59 UTC|newest] Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-09-01 5:58 Brian Dolbec [this message] 2015-09-01 4:50 ` [gentoo-commits] proj/catalyst:master commit in: catalyst/ Brian Dolbec -- strict thread matches above, loose matches on Subject: below -- 2017-11-22 15:52 [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2017-03-16 22:57 Brian Dolbec 2017-03-16 22:57 Brian Dolbec 2017-03-11 9:35 Brian Dolbec 2017-03-11 7:07 Brian Dolbec 2017-03-10 18:38 Brian Dolbec 2017-03-09 10:02 Brian Dolbec 2017-03-09 9:39 Brian Dolbec 2015-11-21 1:33 Brian Dolbec 2015-11-21 1:33 Brian Dolbec 2015-11-21 1:33 Brian Dolbec 2015-11-21 1:33 Brian Dolbec 2015-11-21 1:33 Brian Dolbec 2015-11-21 1:33 Brian Dolbec 2015-09-08 14:14 Brian Dolbec 2015-09-06 21:21 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2015-09-06 21:18 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2015-09-06 21:18 Brian Dolbec 2015-09-06 20:33 Brian Dolbec 2015-09-05 16:24 Brian Dolbec 2015-09-04 15:20 Brian Dolbec 2015-09-03 15:14 Brian Dolbec 2015-09-01 5:58 Brian Dolbec 2015-09-01 5:58 Brian Dolbec 2015-09-01 5:58 Brian Dolbec 2015-09-01 4:50 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2015-09-01 5:58 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2015-08-30 20:58 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2015-09-01 5:58 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2015-06-15 20:25 Brian Dolbec 2015-05-24 0:08 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2015-05-21 23:53 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2015-02-26 20:44 Brian Dolbec 2015-02-26 20:44 Brian Dolbec 2015-02-26 19:25 Brian Dolbec 2015-02-26 4:12 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2015-01-01 5:59 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2015-01-01 5:59 Brian Dolbec 2015-01-01 5:59 Brian Dolbec 2015-01-01 5:59 Brian Dolbec 2015-01-01 5:59 Brian Dolbec 2015-01-01 5:59 Brian Dolbec 2014-09-11 3:26 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2014-06-14 5:58 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2014-09-11 3:26 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2014-06-14 5:58 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2014-09-11 3:08 Brian Dolbec 2014-09-11 3:08 Brian Dolbec 2014-09-11 3:08 Brian Dolbec 2014-09-11 3:08 Brian Dolbec 2014-09-11 3:08 Brian Dolbec 2014-09-02 23:10 Brian Dolbec 2014-09-02 23:10 Brian Dolbec 2014-09-02 23:10 Brian Dolbec 2014-09-02 23:10 Brian Dolbec 2014-09-02 23:10 Brian Dolbec 2014-09-02 7:12 Brian Dolbec 2014-09-02 7:12 Brian Dolbec 2014-09-02 7:12 Brian Dolbec 2014-09-02 7:12 Brian Dolbec 2014-09-02 5:54 Brian Dolbec 2014-09-02 5:54 Brian Dolbec 2014-09-02 5:54 Brian Dolbec 2014-09-02 5:54 Brian Dolbec 2014-09-02 5:54 Brian Dolbec 2014-09-02 2:43 Brian Dolbec 2014-09-02 2:43 Brian Dolbec 2014-09-02 2:43 Brian Dolbec 2014-09-02 2:43 Brian Dolbec 2014-09-02 2:43 Brian Dolbec 2014-06-15 14:56 Brian Dolbec 2014-06-15 14:56 Brian Dolbec 2014-06-15 14:56 Brian Dolbec 2014-06-15 14:56 Brian Dolbec 2014-06-15 14:56 Brian Dolbec 2014-06-14 5:58 Brian Dolbec 2014-06-14 5:58 Brian Dolbec 2014-06-14 5:58 Brian Dolbec 2014-06-14 5:58 Brian Dolbec 2014-06-14 5:58 Brian Dolbec 2014-06-14 5:58 Brian Dolbec 2014-05-05 19:17 [gentoo-commits] proj/catalyst:master " Brian Dolbec 2014-04-02 20:09 ` [gentoo-commits] proj/catalyst:pending " Brian Dolbec 2014-04-02 20:09 Brian Dolbec 2014-04-02 20:09 Brian Dolbec 2014-04-02 20:09 Brian Dolbec 2014-03-22 22:25 Brian Dolbec 2014-03-22 22:25 Brian Dolbec 2014-03-22 22:25 Brian Dolbec 2014-03-22 22:25 Brian Dolbec 2014-03-22 22:25 Brian Dolbec
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1441082455.8035e2073b3bb7ca3125627a9671b63239f0537f.dolsen@gentoo \ --to=dolsen@gentoo.org \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@lists.gentoo.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox