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 6370113873B for ; Tue, 4 Mar 2014 01:57:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E03D0E0AF1; Tue, 4 Mar 2014 01:57:33 +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 7C19CE0AF1 for ; Tue, 4 Mar 2014 01:57:33 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5036833ECA5 for ; Tue, 4 Mar 2014 01:57:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id D6AD0183B3 for ; Tue, 4 Mar 2014 01:57:30 +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: <1393898216.1ef6c1432fc4c8f5011bf3234f799f261ca1a8f9.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:3.0 commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/stagebase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 1ef6c1432fc4c8f5011bf3234f799f261ca1a8f9 X-VCS-Branch: 3.0 Date: Tue, 4 Mar 2014 01:57:30 +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: 61dce214-7c1c-48e1-acc7-87de71813539 X-Archives-Hash: 9af58e5f043cb019dea84aa5c959e346 commit: 1ef6c1432fc4c8f5011bf3234f799f261ca1a8f9 Author: Brian Dolbec gentoo org> AuthorDate: Tue Mar 4 01:56:56 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Tue Mar 4 01:56:56 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=1ef6c143 Fix purgeonly to remove the chroot directory. --- catalyst/base/stagebase.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 8518783..d2c9531 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -501,6 +501,9 @@ class StageBase(TargetBase, ClearBase, GenBase): def set_action_sequence(self): """ Default action sequence for run method """ + if "purgeonly" in self.settings["options"]: + self.settings["action_sequence"] = ["remove_chroot"] + return self.settings["action_sequence"]=["unpack","unpack_snapshot",\ "setup_confdir","portage_overlay",\ "base_dirs","bind","chroot_setup","setup_environment",\ @@ -514,6 +517,7 @@ class StageBase(TargetBase, ClearBase, GenBase): else: self.settings["action_sequence"].append("remove_autoresume") self.settings["action_sequence"].append("remove_chroot") + return def set_use(self): if self.settings["spec_prefix"]+"/use" in self.settings: @@ -1329,12 +1333,11 @@ class StageBase(TargetBase, ClearBase, GenBase): return if "purgeonly" in self.settings["options"]: - #print "StageBase: run() purgeonly" + print "StageBase: run() purgeonly" self.purge() - return if "purge" in self.settings["options"]: - #print "StageBase: run() purge" + print "StageBase: run() purge" self.purge() #print "--- Running action sequences:", self.settings["action_sequence"]