VirtualBox

Changeset 50444 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Feb 13, 2014 12:22:13 PM (11 years ago)
Author:
vboxsync
Message:

pr7197. Deleting unneeded CDROMs from export configuration was replaced by skipping them.

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImpl.cpp

    r50355 r50444  
    14841484    vsde.ulSizeMB = ulSizeMB;
    14851485
     1486    vsde.skipIt = false;
     1487
    14861488    m->maDescriptions.push_back(vsde);
    14871489}
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r50355 r50444  
    611611        {
    612612            ComObjPtr<VirtualSystemDescription> vsdescThis = (*it);
    613             vsdescThis->i_removeByType(VirtualSystemDescriptionType_CDROM);
     613            std::list<VirtualSystemDescriptionEntry*> skipped = vsdescThis->i_findByType(VirtualSystemDescriptionType_CDROM);
     614            std::list<VirtualSystemDescriptionEntry*>:: iterator pItSkipped = skipped.begin();
     615            while (pItSkipped != skipped.end())
     616            {
     617                (*pItSkipped)->skipIt = true;
     618                ++pItSkipped;
     619            }
    614620        }
    615621    }
     
    888894
    889895        //skip empty Medium. There are no information to add into section <References> or <DiskSection>
    890         if (strSrcFilePath.isEmpty())
     896        if (strSrcFilePath.isEmpty() ||
     897            pDiskEntry->skipIt == true)
    891898            continue;
    892899
     
    15181525
    15191526                        //skip empty Medium. There are no information to add into section <References> or <DiskSection>
    1520                         if (desc.strVBoxCurrent.isNotEmpty())
     1527                        if (desc.strVBoxCurrent.isNotEmpty() &&
     1528                            desc.skipIt == false)
    15211529                        {
    15221530                            // the following references the "<Disks>" XML block
     
    20782086
    20792087            //skip empty Medium. In common, It's may be empty CD/DVD
    2080             if (strSrcFilePath.isEmpty())
     2088            if (strSrcFilePath.isEmpty() ||
     2089                pDiskEntry->skipIt == true)
    20812090                continue;
    20822091
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette