Scott Lawrence wrote:
> On Wed, 2009-07-29 at 15:08 -0400, Arjun Nair wrote:
>> Hi,
>>
>> Currently, to determine the SW version running on a system, we do a
>> rpm query for the sipXcommons rpm, and then parse the version number
>> from there. [...]
>
> What parsing? The rpm command will give it to you already parsed:
>
> rpm -q --queryformat %{V}-%{R} sipXcommons
>
So here's what happens now: sipx-swadmin.py looks for the sipxcommons rpm in
the rpm db and then outputs the result in the format
print sipxPackage[0].name + " " + sipxPackage[0].ver + "-" +
sipxPackage[0].release
to a file.
SipXconfig, then GETs this file from sipXsupervisor and parses the text inside,
getting the version and the release number. This was the parsing I was
referring to. The problem is, with the SCS, the file has an extra line at the
top -- Loading "fastestmirror" plugin .. And, sipXconfig does not account for
this line, when parsing this file. So one option is, we could have sipXconfig
explicitly make sure that this line is not there.
Arjun
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/