Example #1
0
 def update(self):
     """
     This is the only acceptable way to update a product definition
     checkout, because it invalidates the cached copy of the data.
     """
     if not self._handle.facade.conary.updateCheckout(
             self.getProductDefinitionDirectory()):
         raise errors.RbuildError('Failed to update product definition')
     ProductStore.update(self)
Example #2
0
 def update(self):
     """
     This is the only acceptable way to update a product definition
     checkout, because it invalidates the cached copy of the data.
     """
     if not self._handle.facade.conary.updateCheckout(
         self.getProductDefinitionDirectory()):
         raise errors.RbuildError('Failed to update product definition')
     ProductStore.update(self)
Example #3
0
 def __init__(self, handle=None, baseDirectory=None):
     ProductStore.__init__(self, handle)
     productDirectory = getDefaultProductDirectory(baseDirectory)
     if productDirectory is None:
         if baseDirectory is None:
             raise errors.RbuildError('Could not find product directory')
         else:
             raise errors.RbuildError("No product directory at '%s'" %
                                      baseDirectory)
     self._baseDirectory = os.path.realpath(productDirectory)
     self._testProductDirectory(self._baseDirectory)
     stageName = getStageNameFromDirectory(os.getcwd())
     if stageName is not None:
         # Cannot load product yet, so cannot validate
         self._currentStage = stageName
     self.statusStore = None
Example #4
0
 def __init__(self, handle=None, baseDirectory=None):
     ProductStore.__init__(self, handle)
     productDirectory = getDefaultProductDirectory(baseDirectory)
     if productDirectory is None:
         if baseDirectory is None:
             raise errors.RbuildError('Could not find product directory')
         else:
             raise errors.RbuildError("No product directory at '%s'"
                                      %baseDirectory)
     self._baseDirectory = os.path.realpath(productDirectory)
     self._testProductDirectory(self._baseDirectory)
     stageName = getStageNameFromDirectory(os.getcwd())
     if stageName is not None:
         # Cannot load product yet, so cannot validate
         self._currentStage = stageName
     self.statusStore = None