summaryrefslogtreecommitdiff
path: root/crocoite/controller.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-05-04 21:15:20 +0300
committerLars-Dominik Braun <lars@6xq.net>2019-05-05 18:55:40 +0200
commite21e16d753f6a7ba787fdb3a3cd1ef504de7f69a (patch)
tree45b0c2dc4aea4ff1934f2a9368ff20801575dcb6 /crocoite/controller.py
parent5ad1cc9ef693e4832fc3be7617efccc782a37e3f (diff)
downloadcrocoite-e21e16d753f6a7ba787fdb3a3cd1ef504de7f69a.tar.gz
crocoite-e21e16d753f6a7ba787fdb3a3cd1ef504de7f69a.tar.bz2
crocoite-e21e16d753f6a7ba787fdb3a3cd1ef504de7f69a.zip
irc: Add job info to warcinfo record
Diffstat (limited to 'crocoite/controller.py')
-rw-r--r--crocoite/controller.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/crocoite/controller.py b/crocoite/controller.py
index 9105997..432d434 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -320,7 +320,11 @@ class RecursiveController:
logger = self.logger.bind (url=url)
def formatCommand (e):
- return e.format (url=url, dest=dest.name)
+ # provide means to disable variable expansion
+ if e.startswith ('!'):
+ return e[1:]
+ else:
+ return e.format (url=url, dest=dest.name)
def formatPrefix (p):
return p.format (host=url.host, date=datetime.utcnow ().isoformat ())