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 1F5A21387B1 for ; Tue, 31 Dec 2013 10:48:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CA45E09B9; Tue, 31 Dec 2013 10:48:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2CE59E0982 for ; Tue, 31 Dec 2013 10:48:42 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55EE133F715 for ; Tue, 31 Dec 2013 10:48:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D8BC8E54FB for ; Tue, 31 Dec 2013 10:48:39 +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: <1388484027.2498ce1f0c45979b29b7af330eaef0c3a17abfa7.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/clearbase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 2498ce1f0c45979b29b7af330eaef0c3a17abfa7 X-VCS-Branch: 3.0 Date: Tue, 31 Dec 2013 10:48:39 +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: 7c87b84b-c6e3-4fcb-b7c9-75384f443dd0 X-Archives-Hash: b86187bf7afe1807a94ea992cf9d5f3c commit: 2498ce1f0c45979b29b7af330eaef0c3a17abfa7 Author: Brian Dolbec gentoo org> AuthorDate: Tue Dec 31 09:04:29 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Tue Dec 31 10:00:27 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=2498ce1f Add remove_chroot and remove_autoresume functions. --- catalyst/base/clearbase.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/catalyst/base/clearbase.py b/catalyst/base/clearbase.py index e38b1a8..8cad779 100644 --- a/catalyst/base/clearbase.py +++ b/catalyst/base/clearbase.py @@ -16,16 +16,28 @@ class ClearBase(object): self.resume = None - def clear_autoresume(self, remove=False): + def clear_autoresume(self): """ Clean resume points since they are no longer needed """ if "autoresume" in self.settings["options"]: print "Removing AutoResume Points: ..." self.resume.clear_all() - def clear_chroot(self, remove=False): + def remove_autoresume(self): + """ Rmove all resume points since they are no longer needed """ + if "autoresume" in self.settings["options"]: + print "Removing AutoResume: ..." + self.resume.clear_all(remove=True) + + + def clear_chroot(self): print 'Clearing the chroot path ...' - clear_dir(self.settings["chroot_path"], 0755, True, remove) + clear_dir(self.settings["chroot_path"], 0755, True) + + + def remove_chroot(self): + print 'Removing the chroot path ...' + clear_dir(self.settings["chroot_path"], 0755, True, remove=True) def clear_packages(self, remove=False):