Changeset 3539:2068ae5840c1 in livinglogic.python.xist

Show
Ignore:
Timestamp:
07/26/08 17:04:49 (11 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix caching logic in CacheAction?.

CacheAction? was returning data even if it didn't have to.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/make.py

    r3538 r3539  
    760760        if self.buildno != project.buildno or (since < self.since and self.data is nodata): # If this is a new build round or we're asked about an earlier date and didn't return data last time 
    761761            (self.data, self.changed) = getoutputs(project, since, self.input) 
     762            project.writenote(self, "Caching data") 
    762763            self.since = since 
    763764            self.buildno = project.buildno 
    764         elif self.data is not nodata: 
     765        if since < self.changed: 
    765766            project.writenote(self, "Reusing cached data") 
    766         return self.data 
     767            return self.data 
     768        return nodata 
    767769 
    768770