Changeset 18588 in vbox
- Timestamp:
- Apr 1, 2009 9:06:55 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/ApplianceImpl.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r18583 r18588 2626 2626 std::list<VirtualSystemDescriptionEntry*> llVendorUrl = vsdescThis->findByType(VirtualSystemDescriptionType_VendorUrl); 2627 2627 std::list<VirtualSystemDescriptionEntry*> llVersion = vsdescThis->findByType(VirtualSystemDescriptionType_Version); 2628 if (llProduct.size() || 2629 llProductUrl.size() || 2630 llVendor.size() || 2631 llVendorUrl.size() || 2632 llVersion.size()) 2628 bool fProduct = llProduct.size() && !llProduct.front()->strVbox.isEmpty(); 2629 bool fProductUrl = llProductUrl.size() && !llProductUrl.front()->strVbox.isEmpty(); 2630 bool fVendor = llVendor.size() && !llVendor.front()->strVbox.isEmpty(); 2631 bool fVendorUrl = llVendorUrl.size() && !llVendorUrl.front()->strVbox.isEmpty(); 2632 bool fVersion = llVersion.size() && !llVersion.front()->strVbox.isEmpty(); 2633 if (fProduct || 2634 fProductUrl || 2635 fVersion || 2636 fVendorUrl || 2637 fVersion) 2633 2638 { 2634 2639 /* <Section ovf:required="false" xsi:type="ovf:ProductSection_Type"> … … 2642 2647 xml::ElementNode *pelmAnnotationSection = pelmVirtualSystem->createChild("ProductSection"); 2643 2648 pelmAnnotationSection->createChild("Info")->addContent("Meta-information about the installed software"); 2644 if ( llProduct.size() && !llProduct.front()->strVbox.isEmpty())2649 if (fProduct) 2645 2650 pelmAnnotationSection->createChild("Product")->addContent(llProduct.front()->strVbox); 2646 if ( llVendor.size() && !llVendor.front()->strVbox.isEmpty())2651 if (fVendor) 2647 2652 pelmAnnotationSection->createChild("Vendor")->addContent(llVendor.front()->strVbox); 2648 if ( llVersion.size() && !llVersion.front()->strVbox.isEmpty())2653 if (fVersion) 2649 2654 pelmAnnotationSection->createChild("Version")->addContent(llVersion.front()->strVbox); 2650 if ( llProductUrl.size() && !llProductUrl.front()->strVbox.isEmpty())2655 if (fProductUrl) 2651 2656 pelmAnnotationSection->createChild("ProductUrl")->addContent(llProductUrl.front()->strVbox); 2652 if ( llVendorUrl.size() && !llVendorUrl.front()->strVbox.isEmpty())2657 if (fVendorUrl) 2653 2658 pelmAnnotationSection->createChild("VendorUrl")->addContent(llVendorUrl.front()->strVbox); 2654 2659 } … … 2656 2661 // description 2657 2662 std::list<VirtualSystemDescriptionEntry*> llDescription = vsdescThis->findByType(VirtualSystemDescriptionType_Description); 2658 if (llDescription.size()) 2663 if (llDescription.size() && 2664 !llDescription.front()->strVbox.isEmpty()) 2659 2665 { 2660 2666 /* <Section ovf:required="false" xsi:type="ovf:AnnotationSection_Type"> … … 2669 2675 // license 2670 2676 std::list<VirtualSystemDescriptionEntry*> llLicense = vsdescThis->findByType(VirtualSystemDescriptionType_License); 2671 if (llLicense.size()) 2677 if (llLicense.size() && 2678 !llLicense.front()->strVbox.isEmpty()) 2672 2679 { 2673 2680 /* <EulaSection>
Note:
See TracChangeset
for help on using the changeset viewer.

