Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes
pymake.data._RemakeContext Class Reference

List of all members.

Public Member Functions

def __init__
def remakecb

Public Attributes

 makefile
 included
 toremake
 cb
 required

Detailed Description

Definition at line 1337 of file data.py.


Constructor & Destructor Documentation

def pymake.data._RemakeContext.__init__ (   self,
  makefile,
  cb 
)

Definition at line 1338 of file data.py.

01338 
01339     def __init__(self, makefile, cb):
01340         self.makefile = makefile
01341         self.included = [(makefile.gettarget(f), required)
01342                          for f, required in makefile.included]
01343         self.toremake = list(self.included)
01344         self.cb = cb
01345 
01346         self.remakecb(error=False, didanything=False)


Member Function Documentation

def pymake.data._RemakeContext.remakecb (   self,
  error,
  didanything 
)

Definition at line 1347 of file data.py.

01347 
01348     def remakecb(self, error, didanything):
01349         assert error in (True, False)
01350 
01351         if error and self.required:
01352             print "Error remaking makefiles (ignored)"
01353 
01354         if len(self.toremake):
01355             target, self.required = self.toremake.pop(0)
01356             target.make(self.makefile, [], avoidremakeloop=True, cb=self.remakecb, printerror=False)
01357         else:
01358             for t, required in self.included:
01359                 if t.wasremade:
01360                     _log.info("Included file %s was remade, restarting make", t.target)
01361                     self.cb(remade=True)
01362                     return
01363                 elif required and t.mtime is None:
01364                     self.cb(remade=False, error=DataError("No rule to remake missing include file %s" % t.target))
01365                     return
01366 
01367             self.cb(remade=False)


Member Data Documentation

Definition at line 1343 of file data.py.

Definition at line 1340 of file data.py.

Definition at line 1339 of file data.py.

Definition at line 1354 of file data.py.

Definition at line 1342 of file data.py.


The documentation for this class was generated from the following file: