From bac889bca8102aec62ddf28fc75c3eafb4a40dc0 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 20 Sep 2011 10:46:05 +0200 Subject: [PATCH] expand @DATE@ --- system/Substrate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/Substrate.py b/system/Substrate.py index e145b20..8da463c 100644 --- a/system/Substrate.py +++ b/system/Substrate.py @@ -317,7 +317,10 @@ class BuildBox (Box): for line in ps_lines: if not line.strip() or line.find('PID')>=0: continue m=BuildBox.matcher.match(line) - if m: self.add_build (m.group('buildname'),m.group('pid')) + if m: + date=time.strftime('%Y-%m-%d',time.localtime(time.time())) + buildname=m.group('buildname').replace('@DATE@',date) + self.add_build (buildname,m.group('pid')) else: header('command %r returned line that failed to match'%command) ############################################################ -- 2.45.2