Changeset 16830 in vbox
- Timestamp:
- Feb 17, 2009 12:28:06 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r16668 r16830 81 81 82 82 Utf8Str strOvfFilename; 83 bool fExecute = false; // if true, then we actually do the import (-exec argument)83 bool fExecute = true; // if true, then we actually do the import 84 84 85 85 uint32_t ulCurVsys = (uint32_t)-1; … … 97 97 bool fIsIgnore = false; 98 98 Utf8Str strThisArg(a->argv[i]); 99 if (strThisArg == "-exec") 100 fExecute = true; 99 if ( (strThisArg == "--dry-run") 100 || (strThisArg == "-n") 101 ) 102 fExecute = false; 101 103 else if (strThisArg == "-vsys") 102 104 { … … 235 237 bool fIgnoreThis = mapIgnoresMapsPerVsys[i][a]; 236 238 239 aEnabled[a] = true; 240 237 241 switch (t) 238 242 { -
trunk/src/VBox/Main/ApplianceImpl.cpp
r16702 r16830 1238 1238 { 1239 1239 list<VirtualSystem>::const_iterator it; 1240 /* Iterate through all appliances */1240 /* Iterate through all virtual systems */ 1241 1241 for (it = m->llVirtualSystems.begin(); 1242 1242 it != m->llVirtualSystems.end(); … … 1706 1706 if (!task->progress.isNull()) 1707 1707 { 1708 rc = task->progress->advanceOperation 1708 rc = task->progress->advanceOperation(BstrFmt(tr("Importing Virtual System %d"), i + 1)); 1709 1709 CheckComRCThrowRC(rc); 1710 1710 } … … 1715 1715 1716 1716 /* Guest OS type */ 1717 std::list<VirtualSystemDescriptionEntry*> vsdeOS = vsdescThis->findByType(VirtualSystemDescriptionType_OS); 1718 ComAssertMsgThrow(vsdeOS.size() == 1, ("Guest OS Type missing"), E_FAIL); 1717 std::list<VirtualSystemDescriptionEntry*> vsdeOS; 1718 vsdeOS = vsdescThis->findByType(VirtualSystemDescriptionType_OS); 1719 if (vsdeOS.size() < 1) 1720 throw setError(VBOX_E_FILE_ERROR, 1721 tr("Missing guest OS type")); 1719 1722 const Utf8Str &strOsTypeVBox = vsdeOS.front()->strConfig; 1720 1723 … … 1727 1730 /* First get the name */ 1728 1731 std::list<VirtualSystemDescriptionEntry*> vsdeName = vsdescThis->findByType(VirtualSystemDescriptionType_Name); 1729 ComAssertMsgThrow(vsdeName.size() == 1, ("Guest OS name missing"), E_FAIL); 1732 if (vsdeName.size() < 1) 1733 throw setError(VBOX_E_FILE_ERROR, 1734 tr("Missing VM name")); 1730 1735 const Utf8Str &strNameVBox = vsdeName.front()->strConfig; 1731 1736 ComPtr<IMachine> pNewMachine; … … 2369 2374 { 2370 2375 std::list<VirtualSystemDescriptionEntry*> vsd; 2376 2371 2377 list<VirtualSystemDescriptionEntry>::iterator it; 2372 2378 for (it = m->descriptions.begin(); 2373 2379 it != m->descriptions.end(); 2374 2380 ++it) 2381 { 2375 2382 if (it->type == aType) 2376 vsd.push_back(&(*it)); 2383 vsd.push_back(pThis); 2384 } 2377 2385 2378 2386 return vsd; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r16779 r16830 1123 1123 there is no way to access the object representing the 1124 1124 unregistered media. It is supposed that the 1125 application will do required cleanup based on the @a1126 mediaId value.1125 application will do required cleanup based on the 1126 @a mediaId value. 1127 1127 </desc> 1128 1128 <param name="mediaId" type="uuid" dir="in">
Note:
See TracChangeset
for help on using the changeset viewer.