Changeset 519

Show
Ignore:
Timestamp:
Mon Aug 4 12:34:33 2008
Author:
htgoebel
Message:

Messages failed to display in rarely hit cases.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/Build.py

    r515 r519  
    124 124         self.out = os.path.join(BUILDPATH, 'out%s%d.toc' % (self.__class__.__name__,  
    125 125                                                             self.invcnum))  
      126         self.outnm = os.path.basename(self.out)  
    126 127         self.dependencies = TOC()  
      128  
    127 129     def __postinit__(self):  
    128 130         print "checking %s" % (self.__class__.__name__,)  
     
    146 148  
    147 149         if len(data) != len(self.GUTS):  
    148               print "building because %s is bad" % outnm  
      150             print "building because %s is bad" % self.outnm  
    148 150             return None  
    149 151         for i in range(len(self.GUTS)):  
     
    189 191    
    190 192     def check_guts(self, last_build):  
    191           outnm = os.path.basename(self.out)  
    192 193         if last_build == 0:  
    193               print "building %s because %s non existent" % (self.__class__.__name__, outnm)  
      194             print "building %s because %s non existent" % (self.__class__.__name__, self.outnm)  
    193 194             return True  
    194 195         for fnm in self.inputs:  
     
    348 349  
    349 350     def check_guts(self, last_build):  
    350           outnm = os.path.basename(self.out)  
    351 351         if not os.path.exists(self.name):  
    352               print "rebuilding %s because %s is missing" % (outnm, os.path.basename(self.name))  
      352             print "rebuilding %s because %s is missing" % (self.outnm, os.path.basename(self.name))  
    352 352             return True  
    353 353  
     
    471 471  
    472 472     def check_guts(self, last_build):  
    473           outnm = os.path.basename(self.out)  
    474 473         if not os.path.exists(self.name):  
    475               print "rebuilding %s because %s is missing" % (outnm, os.path.basename(self.name))  
      474             print "rebuilding %s because %s is missing" % (self.outnm, os.path.basename(self.name))  
    475 474             return 1  
    476 475          
     
    574 573  
    575 574     def check_guts(self, last_build):  
    576           outnm = os.path.basename(self.out)  
    577 575         if not os.path.exists(self.name):  
    578               print "rebuilding %s because %s missing" % (outnm, os.path.basename(self.name))  
      576             print "rebuilding %s because %s missing" % (self.outnm, os.path.basename(self.name))  
    578 576             return 1  
    579 577         if not self.append_pkg and not os.path.exists(self.pkgname):  
     
    594 592         mtm = data[-1]  
    595 593         if mtm != mtime(self.name):  
    596               print "rebuilding", outnm, "because mtimes don't match"  
      594             print "rebuilding", self.outnm, "because mtimes don't match"  
    596 594             return True  
    597 595         if mtm < mtime(self.pkg.out):  
    598               print "rebuilding", outnm, "because pkg is more recent"  
      596             print "rebuilding", self.outnm, "because pkg is more recent"  
    598 596             return True  
    599 597  
     
    722 720                 test = os.path.join(self.name, os.path.basename(fnm))  
    723 721             if not os.path.exists(test):  
    724                   print "building %s because %s is missing" % (outnm, test)  
      722                 print "building %s because %s is missing" % (self.outnm, test)  
    724 722                 return 1  
    725 723             if mtime(fnm) > mtime(test):  
    726                   print "building %s because %s is more recent" % (outnm, fnm)  
      724                 print "building %s because %s is more recent" % (self.outnm, fnm)  
    726 724                 return 1  
    727 725         return 0  
     
    845 843             d = stack.pop()  
    846 844             if mtime(d) > last_build:  
    847                   print "building %s because directory %s changed" % (outnm, d)  
      845                 print "building %s because directory %s changed" % (self.outnm, d)  
    847 845                 return True  
    848 846             for nm in os.listdir(d):