commit:     d8c463e167f5be77bedf767646d9485a9a8f4f8f
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu May 19 19:22:13 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> 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):

Reply via email to