Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/
Date: Sun, 20 Dec 2015 01:13:08
Message-Id: 1450573905.208ad850b52416b80844a553836bdd76f092692c.dolsen@gentoo
1 commit: 208ad850b52416b80844a553836bdd76f092692c
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 20 01:08:29 2015 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 20 01:11:45 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=208ad850
7
8 stagebase.py: Fix -P action for stages beyond stage3
9
10 Since commit f2afd7ff03e6e8453e86be938bd21c2cd33d3996 it removed the return after calling purge(). Since the remove_chroot operation was separated and that return removed, any target stage that overrode the set_action_sequence no longer did the ful purgeonly step, but continued to add the normal action_sequences for that stage.
11
12 catalyst/base/stagebase.py | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
14
15 diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
16 index a880249..c2902ed 100644
17 --- a/catalyst/base/stagebase.py
18 +++ b/catalyst/base/stagebase.py
19 @@ -160,7 +160,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
20 self.set_target_path()
21
22 self.set_controller_file()
23 - self.set_action_sequence()
24 + self.set_default_action_sequence()
25 self.set_use()
26 self.set_cleanables()
27 self.set_iso_volume_id()
28 @@ -497,11 +497,14 @@ class StageBase(TargetBase, ClearBase, GenBase):
29 else:
30 self.settings["iso_volume_id"]="catalyst "+self.settings["snapshot"]
31
32 - def set_action_sequence(self):
33 + def set_default_action_sequence(self):
34 """ Default action sequence for run method """
35 if "purgeonly" in self.settings["options"]:
36 self.settings["action_sequence"] = ["remove_chroot"]
37 return
38 + self.set_action_sequence()
39 +
40 + def set_action_sequence(self):
41 self.settings["action_sequence"]=["unpack","unpack_snapshot",\
42 "setup_confdir","portage_overlay",\
43 "base_dirs","bind","chroot_setup","setup_environment",\