From: akl Date: Tue, 28 Aug 2007 13:54:06 +0000 (+0000) Subject: 1) remove required size calculations for each product: just read its from XML and... X-Git-Tag: IMP_BR_4~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b42a653614f830d8a28b8e2d8567d4c22af23f52;p=tools%2Finstall.git 1) remove required size calculations for each product: just read its from XML and fill in dependencies. --- diff --git a/src/SALOME_XmlHandler.cxx b/src/SALOME_XmlHandler.cxx index 62729d7..95af105 100644 --- a/src/SALOME_XmlHandler.cxx +++ b/src/SALOME_XmlHandler.cxx @@ -245,19 +245,14 @@ void StructureParser::getProductsInfo( const QDomNode &theNode ) QString type = prodElem.attribute( "type" ).stripWhiteSpace().lower(); bool pickUp = isBoolAttributeSet( instElem.attribute( "pickupenv" ) ); QString script = instElem.attribute( "script" ); - InstallationType instType = myWizard->getInstType(); QStringList typesList = QStringList::split( ",", type ); - long prodSize = ( instType == Binaries ? (binreq + srcreq) : - instType == Sources ? srcreq : - cmplreq ); - if ( typesList.find( "component" ) != typesList.end() ) { + if ( typesList.find( "component" ) != typesList.end() ) element = myModules->addItem( name, - QString::number( prodSize ) + " KB", + "unknown", script ); - } else element = myPrereqs->addItem( name, - QString::number( prodSize ) + " KB", + "unknown", script ); QString descr = QString::null; if ( prodElem.attribute( "description" ) != "" )