From: Thierry Parmentelat Date: Sat, 8 Dec 2007 13:23:45 +0000 (+0000) Subject: first draft of an about page X-Git-Tag: PLCAPI-4.2-0~10 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=490bb690143165748461d04a38ed769e90c0f2b3;p=plcapi.git first draft of an about page --- 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')