From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3E2CC1383D3 for ; Tue, 1 Sep 2015 05:59:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E5E4142F4; Tue, 1 Sep 2015 05:59:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BDF03142F0 for ; Tue, 1 Sep 2015 05:59:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 057713406F0 for ; Tue, 1 Sep 2015 05:59:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 946A2191 for ; Tue, 1 Sep 2015 05:58:57 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1441082455.8035e2073b3bb7ca3125627a9671b63239f0537f.dolsen@gentoo> Subject: [gentoo-commits] proj/catalyst:pending commit in: catalyst/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/fileops.py X-VCS-Directories: catalyst/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 8035e2073b3bb7ca3125627a9671b63239f0537f X-VCS-Branch: pending Date: Tue, 1 Sep 2015 05:58:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 60fb3e6d-9c3b-46ef-97c3-cfb83d4f1a9d X-Archives-Hash: f5a70c08c84740a48ba7a0ade4201646 commit: 8035e2073b3bb7ca3125627a9671b63239f0537f Author: Brian Dolbec gentoo org> AuthorDate: Tue Sep 1 04:39:38 2015 +0000 Commit: Brian Dolbec gentoo 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 473E31383D3 for ; Tue, 1 Sep 2015 04:50:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8F0014272; Tue, 1 Sep 2015 04:50:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5DEA61425C for ; Tue, 1 Sep 2015 04:50:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 83FD934070A for ; Tue, 1 Sep 2015 04:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7863171 for ; Tue, 1 Sep 2015 04:50:23 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1441082455.8035e2073b3bb7ca3125627a9671b63239f0537f.dolsen@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/fileops.py X-VCS-Directories: catalyst/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 8035e2073b3bb7ca3125627a9671b63239f0537f X-VCS-Branch: master Date: Tue, 1 Sep 2015 04:50:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8d816e8f-4e7c-4437-9c8d-8ba598bbade7 X-Archives-Hash: c8d4090662bcf98d32aeea4ca28246a2 Message-ID: <20150901045023.qVtLZT_NPLFp0Oxk5itKijDcxaQUmyif0nSJzS6wCRA@z> commit: 8035e2073b3bb7ca3125627a9671b63239f0537f Author: Brian Dolbec gentoo org> AuthorDate: Tue Sep 1 04:39:38 2015 +0000 Commit: Brian Dolbec gentoo 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