summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-12-29 15:12:54 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-12-29 15:12:54 +0100
commit66190e68206419879c4dfa919637e185b137cb64 (patch)
treea16037a8a6b244c91478201f9527df5e678be144 /crocoite
parent3c887255deb32ee96e4cc4144baf9688b10546f8 (diff)
downloadcrocoite-66190e68206419879c4dfa919637e185b137cb64.tar.gz
crocoite-66190e68206419879c4dfa919637e185b137cb64.tar.bz2
crocoite-66190e68206419879c4dfa919637e185b137cb64.zip
controller: Include dest template in temp file name
Makes it easier to figure out which temporary file belongs to which job for the IRC bot.
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/crocoite/controller.py b/crocoite/controller.py
index 4c9c4b3..8374b4e 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -427,7 +427,8 @@ class RecursiveController:
return
dest = tempfile.NamedTemporaryFile (dir=self.tempdir,
- prefix=__package__, suffix='.warc.gz', delete=False)
+ prefix=os.path.basename (self.output) + '-', suffix='.warc.gz',
+ delete=False)
command = list (map (formatCommand, self.command))
logger.info ('fetch', uuid='d1288fbe-8bae-42c8-af8c-f2fa8b41794f',
command=command)