]> git.ipfire.org Git - dbl.git/commitdiff
exporters: Add the correct directory to the squidGuard tarball
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Dec 2025 11:48:32 +0000 (11:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Dec 2025 11:48:32 +0000 (11:48 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/exporters.py

index 8288f511ee331bb20424504c822f372b9abada51..df39a0ce969b3b76d841b83db24f8aa8632ec7b5 100644 (file)
@@ -221,7 +221,7 @@ class SquidGuardExporter(Exporter):
 
        def _write_list(self, tarball):
                # Create a new
-               file = tarfile.TarInfo(name="%s/domains" % self.list.slug)
+               file = tarfile.TarInfo(name="blacklists/%s/domains" % self.list.slug)
 
                # Write the payload to memory
                f = io.BytesIO()
@@ -237,7 +237,7 @@ class SquidGuardExporter(Exporter):
 
                # squidguard is also expecting some more files
                for name in ("expressions", "urls"):
-                       file = tarfile.TarInfo(name="%s/%s" % (self.list.slug, name))
+                       file = tarfile.TarInfo(name="blacklists/%s/%s" % (self.list.slug, name))
 
                        self._write_file(tarball, file)