commit:     3a3c953960b807dc2dfc8372b58007eb6becdd41
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  9 08:56:45 2017 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 22:56:10 2017 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=3a3c9539

base/stagebase.py: Rename unpack_portage resume point to unpack_repo

One part of the effort to separate the portage name from the repository.

 catalyst/base/stagebase.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index b857a64..93c1390 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -808,7 +808,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
 
        def unpack_snapshot(self):
                unpack = True
-               snapshot_hash = self.resume.get("unpack_portage")
+               snapshot_hash = self.resume.get("unpack_repo")
 
                unpack_errmsg = "Error unpacking snapshot using mode %(mode)s"
 
@@ -847,7 +847,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
 
                        if "autoresume" in self.settings["options"] \
                                and os.path.exists(target_portdir) \
-                               and self.resume.is_enabled("unpack_portage") \
+                               and self.resume.is_enabled("unpack_repo") \
                                and self.settings["snapshot_path_hash"] == 
snapshot_hash:
                                log.notice('Valid Resume point detected, 
skipping unpack of portage tree...')
                                unpack = False
@@ -868,7 +868,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                                        
myf.write(self.settings["snapshot_path_hash"])
                        else:
                                log.info('Setting snapshot autoresume point')
-                               self.resume.enable("unpack_portage",
+                               self.resume.enable("unpack_repo",
                                        data = 
self.settings["snapshot_path_hash"])
 
                        if "snapcache" in self.settings["options"]:

Reply via email to