Changeset 49103 in vbox
- Timestamp:
- Oct 15, 2013 6:20:39 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89937
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r49038 r49103 796 796 { "--ovf20", '2', RTGETOPT_REQ_NOTHING }, 797 797 { "--manifest", 'm', RTGETOPT_REQ_NOTHING }, 798 { "--iso", 'I', RTGETOPT_REQ_NOTHING }, 798 799 { "--vsys", 's', RTGETOPT_REQ_UINT32 }, 799 800 { "--product", 'p', RTGETOPT_REQ_STRING }, … … 814 815 Utf8Str strOvfFormat("ovf-1.0"); // the default export version 815 816 bool fManifest = false; // the default 817 bool fExportISOImages = false; // the default 816 818 std::list< ComPtr<IMachine> > llMachines; 817 819 … … 851 853 case '2': // --ovf20 852 854 strOvfFormat = "ovf-2.0"; 855 break; 856 857 case 'I': // --iso 858 fExportISOImages = true; 853 859 break; 854 860 … … 1055 1061 options.push_back(ExportOptions_CreateManifest); 1056 1062 1063 if (fExportISOImages) 1064 options.push_back(ExportOptions_ExportDVDImages); 1065 1057 1066 ComPtr<IProgress> progress; 1058 1067 CHECK_ERROR_BREAK(pAppliance, Write(Bstr(strOvfFormat).raw(), -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r49086 r49103 410 410 " [--legacy09|--ovf09|--ovf10|--ovf20]\n" 411 411 " [--manifest]\n" 412 " [--iso]\n" 412 413 " [--vsys <number of virtual system>]\n" 413 414 " [--product <product name>]\n" -
trunk/src/VBox/Main/include/ApplianceImpl.h
r49038 r49103 339 339 const settings::MachineConfigFile* getMachineConfig() const; 340 340 341 void removeByType(VirtualSystemDescriptionType_T aType); 342 341 343 /* private instance data */ 342 344 private: -
trunk/src/VBox/Main/include/ApplianceImplPrivate.h
r49038 r49103 55 55 , fManifest(true) 56 56 , fSha256(false) 57 , fExportISOImages(false) 57 58 , pReader(NULL) 58 59 , ulWeightForXmlOperation(0) … … 78 79 bool fSha256; // true = SHA256 (OVF 2.0), false = SHA1 (OVF 1.0) 79 80 Utf8Str strOVFSHADigest;//SHA digest of OVf file. It is stored here after reading OVF file (before import) 81 82 bool fExportISOImages;// when 1 the ISO images are exported 80 83 81 84 RTCList<ImportOptions_T> optListImport; -
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r49039 r49103 1559 1559 1560 1560 /** 1561 * Private method; delete all records from the list 1562 * m->llDescriptions that match the given type. 1563 * @param aType 1564 * @return 1565 */ 1566 void VirtualSystemDescription::removeByType(VirtualSystemDescriptionType_T aType) 1567 { 1568 std::list<VirtualSystemDescriptionEntry*> vsd; 1569 1570 list<VirtualSystemDescriptionEntry>::iterator it = m->llDescriptions.begin(); 1571 while (it != m->llDescriptions.end()) 1572 { 1573 if (it->type == aType) 1574 it = m->llDescriptions.erase(it); 1575 else 1576 ++it; 1577 } 1578 } 1579 1580 /** 1561 1581 * Private method; looks thru the member hardware items for the IDE, SATA, or SCSI controller with 1562 1582 * the given reference ID. Useful when needing the controller for a particular -
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r49047 r49103 597 597 m->optListExport = com::SafeArray<ExportOptions_T>(ComSafeArrayInArg(options)).toList(); 598 598 599 AssertReturn(!(m->optListExport.contains(ExportOptions_CreateManifest) && m->optListExport.contains(ExportOptions_ExportDVDImages)), E_INVALIDARG); 599 // AssertReturn(!(m->optListExport.contains(ExportOptions_CreateManifest) && m->optListExport.contains(ExportOptions_ExportDVDImages)), E_INVALIDARG); 600 601 m->fExportISOImages = m->optListExport.contains(ExportOptions_ExportDVDImages); 602 603 if (!m->fExportISOImages)/* remove all ISO images from VirtualSystemDescription */ 604 { 605 list< ComObjPtr<VirtualSystemDescription> >::const_iterator it; 606 for (it = m->virtualSystemDescriptions.begin(); 607 it != m->virtualSystemDescriptions.end(); 608 ++it) 609 { 610 ComObjPtr<VirtualSystemDescription> vsdescThis = (*it); 611 vsdescThis->removeByType(VirtualSystemDescriptionType_CDROM); 612 } 613 } 600 614 601 615 // do not allow entering this method if the appliance is busy reading or writing
Note:
See TracChangeset
for help on using the changeset viewer.