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 039A1138263 for ; Fri, 20 May 2016 03:03:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E526F21C04E; Fri, 20 May 2016 03:03:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9279221C04E for ; Fri, 20 May 2016 03:03:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 04518340B9E for ; Fri, 20 May 2016 03:03:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42301336 for ; Fri, 20 May 2016 03:03:06 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1463686762.d8c463e167f5be77bedf767646d9485a9a8f4f8f.vapier@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/clearbase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: d8c463e167f5be77bedf767646d9485a9a8f4f8f X-VCS-Branch: master Date: Fri, 20 May 2016 03:03:06 +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: 0e3a92e0-97f4-48ad-bfe4-46bf225fe2da X-Archives-Hash: d9195493a4cfa69f9c03920f9595d598 commit: d8c463e167f5be77bedf767646d9485a9a8f4f8f Author: Mike Frysinger gentoo org> AuthorDate: Thu May 19 19:22:13 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu May 19 19:39:22 2016 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d8c463e1 clear_dir: use kwargs everywhere Don't pass args by position when clear_args uses optional args. This makes it easy to screw up the calls when changing the API. catalyst/base/clearbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalyst/base/clearbase.py b/catalyst/base/clearbase.py index 9a4c625..644a385 100644 --- a/catalyst/base/clearbase.py +++ b/catalyst/base/clearbase.py @@ -30,13 +30,13 @@ class ClearBase(object): def clear_chroot(self): self.chroot_lock.unlock() log.notice('Clearing the chroot path ...') - clear_dir(self.settings["chroot_path"], 0o755, True) + clear_dir(self.settings["chroot_path"], mode=0o755, chg_flags=True) def remove_chroot(self): self.chroot_lock.unlock() log.notice('Removing the chroot path ...') - clear_dir(self.settings["chroot_path"], 0o755, True, remove=True) + clear_dir(self.settings["chroot_path"], mode=0o755, chg_flags=True, remove=True) def clear_packages(self, remove=False):