]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht/AptPackages.py
Rename project to apt-p2p.
[quix0rs-apt-p2p.git] / apt_dht / AptPackages.py
index c784b8b68bf7386139caccd8f814a2318ba2c13a..44c84b56bdb1b4e7b5158f300e6bb70bbd7e81d1 100644 (file)
@@ -285,7 +285,7 @@ class AptPackages:
             file = self.packages[f]
             if f.split('/')[-1] == "Release":
                 self.addRelease(f, file)
-            fake_uri='http://apt-dht'+f
+            fake_uri='http://apt-p2p'+f
             fake_dirname = '/'.join(fake_uri.split('/')[:-1])
             if f.endswith('Sources'):
                 deb_src_added = True
@@ -434,7 +434,7 @@ class TestAptPackages(unittest.TestCase):
     
     def setUp(self):
         """Initializes the cache with files found in the traditional apt location."""
-        self.client = AptPackages(FilePath('/tmp/.apt-dht'), 300)
+        self.client = AptPackages(FilePath('/tmp/.apt-p2p'), 300)
     
         # Find the largest index files that are for 'main'
         self.packagesFile = os.popen('ls -Sr /var/lib/apt/lists/ | grep -E "_main_.*Packages$" | tail -n 1').read().rstrip('\n')