- def cached_file(self, hash, url, file_path):
- assert file_path.startswith(config.get('DEFAULT', 'cache_dir'))
- urlpath, newdir = self.db.storeFile(file_path, hash.digest(), config.get('DEFAULT', 'cache_dir'))
- log.msg('now avaliable at %s: %s' % (urlpath, url))
-
- if self.my_addr:
+ def new_cached_file(self, url, file_path, hash, urlpath):
+ self.mirrors.updatedFile(url, file_path)
+
+ if self.my_addr and hash: