# Distributed under the GPL v2
# $Id$
+ 12 Sep 2009; Andrew Gaffney <agaffney@gentoo.org> TODO,
+ modules/catalyst/target/generic.py:
+ Add ability to invalidate all further autoresume points
+
12 Sep 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
Remove another unnecessary intermediary variable
- normal and debug kernels/userlands
- perform fetches before builds
- smarter auto-resume/caching
+ - record file/dir metadata (such as for portage_confdir) to invalidate autoresume
+ - one failed autoresume invalidates all remaining autoresume points
- store failure info
- attempt normal --resume or equivalent auto-resume
- remove object from seed/package caches
class generic_target:
+ _autoresume_invalid = False
+
def __init__(self):
# if myspec and addlargs:
# catalyst.util.addl_arg_parse(myspec,addlargs,self.required_values,self.valid_values)
def check_autoresume(self, step=None):
if "AUTORESUME" in self.settings:
if step:
- if os.path.exists(self.settings["autoresume_path"] + step):
+ if self._autoresume_invalid:
+ return False
+ elif os.path.exists(self.settings["autoresume_path"] + step):
return True
else:
+ self._autoresume_invalid = True
return False
else:
return True