From: Michael Tremer Date: Sun, 21 Dec 2025 11:48:32 +0000 (+0000) Subject: exporters: Add the correct directory to the squidGuard tarball X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c947a3c252114670d1075c54235336c519a5fb7;p=dbl.git exporters: Add the correct directory to the squidGuard tarball Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/exporters.py b/src/dnsbl/exporters.py index 8288f51..df39a0c 100644 --- a/src/dnsbl/exporters.py +++ b/src/dnsbl/exporters.py @@ -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)