X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_dht%2Fapt_dht.py;h=9504f8a854683b7196c556f83edf9565f64d6272;hp=2211c1dfacd4dd64d4fe4ffcb2d6d8805ebeb39a;hb=f83e9b0f84fdf3d3d98e7f2742a0512fd8aff7eb;hpb=d2e2a977ff11ad786479c362a8ed716fbc10e04c diff --git a/apt_dht/apt_dht.py b/apt_dht/apt_dht.py index 2211c1d..9504f8a 100644 --- a/apt_dht/apt_dht.py +++ b/apt_dht/apt_dht.py @@ -34,7 +34,8 @@ class AptDHT: self.http_site = server.Site(self.http_server) self.peers = PeerManager() self.mirrors = MirrorManager(self.cache_dir) - self.cache = CacheManager(self.cache_dir.child(download_dir), self.db, self) + other_dirs = [FilePath(f) for f in config.getstringlist('DEFAULT', 'OTHER_DIRS')] + self.cache = CacheManager(self.cache_dir.child(download_dir), self.db, other_dirs, self) self.my_addr = None def getSite(self):