]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
1) remove required size calculations for each product: just read its from XML and...
authorakl <akl@opencascade.com>
Tue, 28 Aug 2007 13:54:06 +0000 (13:54 +0000)
committerakl <akl@opencascade.com>
Tue, 28 Aug 2007 13:54:06 +0000 (13:54 +0000)
src/SALOME_XmlHandler.cxx

index 62729d7c8792568f564d8c28657c5bb4029e2577..95af10569648b59cddf59d949cdb6586256a7826 100644 (file)
@@ -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" ) != "" )