From 490bb690143165748461d04a38ed769e90c0f2b3 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sat, 8 Dec 2007 13:23:45 +0000 Subject: [PATCH] first draft of an about page --- PLC/Methods/GetPlcRelease.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PLC/Methods/GetPlcRelease.py b/PLC/Methods/GetPlcRelease.py index 7df66aae..d35df13c 100644 --- a/PLC/Methods/GetPlcRelease.py +++ b/PLC/Methods/GetPlcRelease.py @@ -7,7 +7,9 @@ import re comment_regexp = '\A\s*#.|\A\s*\Z|\Axxxxx' regexps = { 'build' : '\A[bB]uild\s+(?P[^:]+)\s*:\s*(?P.*)\Z', - 'tags' : '\A(?P[^:]+)\s*:=\s*(?P.*)\Z'} + 'tags' : '\A(?P[^:]+)\s*:=\s*(?P.*)\Z', + 'rpms' : '\A(?P[^:]+)\s*::\s*(?P.*)\Z', +} class GetPlcRelease(Method): """ @@ -34,7 +36,6 @@ class GetPlcRelease(Method): for field in regexps.keys(): matchers[field] = re.compile(regexps[field]) result[field]={} - result['rpms']="Not implemented yet" try: release = open('/etc/myplc-release') -- 2.47.0