# recompute the SFA graphs from different locations
+## use -vv for the full story
SFASCAN = ./sfascan.py -v
# AMs, at least MyPLC AMs, are boring
BUNDLES-LR += http://www.emanicslab.org:12345/@auto-elc-reg
BUNDLES-LR += http://www.emanicslab.org:12347/@auto-elc-sa
-#EXTENSIONS := png svg
-EXTENSIONS := png
+EXTENSIONS := png svg
+#EXTENSIONS := png
####################
ALL += $(foreach bundle,$(BUNDLES),$(word 2,$(subst @, ,$(bundle))))
####################
clean:
- rm -f auto-*.{out,version}
+ rm -f .auto*
$(foreach extension,$(EXTENSIONS),rm -rf auto-*.$(extension);)
+ $(SFASCAN) -c
DATE=$(shell date '+%Y-%m-%d')
PUBEXTENSIONS=png
except:
logger.debug("Cannot load version cache, restarting from scratch")
self.url2version = {}
- logger.debug("loaded version cache with %d entries"%(len(self.url2version)))
+ logger.debug("loaded version cache with %d entries %s"%(len(self.url2version),self.url2version.keys()))
def save (self):
try:
logger.log_exc ("Cannot save version cache into %s"%self.filename)
def clean (self):
try:
- os.unlink(self.filename)
- logger.info("Cleaned up version cache %s"%self.filename)
+ retcod=os.unlink(self.filename)
+ logger.info("Cleaned up version cache %s, retcod=%d"%(self.filename,retcod))
except:
logger.info ("Could not unlink version cache %s"%self.filename)
if self.probed:
return self._version
### otherwise let's look in the cache file
+ logger.debug("searching in version cache %s"%self.url())
cached_version = VersionCache().get(self.url())
- if cached_version:
+ if cached_version is not None:
logger.info("Retrieved version info from cache")
return cached_version
### otherwise let's do the hard work