From: Heidi N. <hei...@us...> - 2005-03-03 13:53:03
|
Update of /cvsroot/sblim/cmpi-base In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16691 Modified Files: OSBase_OperatingSystem.c Log Message: fixed bug# 1155834: InstallDate on Fedora was not set Index: OSBase_OperatingSystem.c =================================================================== RCS file: /cvsroot/sblim/cmpi-base/OSBase_OperatingSystem.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- OSBase_OperatingSystem.c 3 Mar 2005 13:38:41 -0000 1.16 +++ OSBase_OperatingSystem.c 3 Mar 2005 13:52:35 -0000 1.17 @@ -200,7 +200,12 @@ get_os_distro(); if( strstr( CIM_OS_DISTRO, "Red Hat" ) != NULL ) { + /* we guess it is Red Hat */ rc = runcommand( "rpm -qi redhat-release | grep Install" , NULL , &hdout , NULL ); + if(rc!=0) { + /* we guess it is Fedora */ + rc = runcommand( "rpm -qi fedora-release | grep Install" , NULL , &hdout , NULL ); + } if( rc == 0 ) { str = strstr( hdout[0], ": "); str+=2; |