- Timestamp:
- Jul 26, 2017 7:31:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r68127 r68129 1293 1293 const char *pszProxy = NULL; 1294 1294 const char *pszHostname = NULL; 1295 RTCList<RTCString> arrPackageSelectionAdjustments; 1296 // advance options: 1295 1297 Utf8Str strAbsAuxiliaryBasePath; 1296 1298 const char *pszAuxiliaryBasePath = NULL; … … 1301 1303 const char *pszPostInstallCommand = NULL; 1302 1304 const char *pszExtraInstallKernelParameters = NULL; 1305 // start vm related options: 1303 1306 const char *pszSessionType = "headless"; 1304 1307 … … 1327 1330 { "--proxy", 'y', RTGETOPT_REQ_STRING }, 1328 1331 { "--hostname", 'H', RTGETOPT_REQ_STRING }, 1332 { "--package-selection-adjustment", 's', RTGETOPT_REQ_STRING }, 1333 // advance options: 1329 1334 { "--auxiliary-base-path", 'x', RTGETOPT_REQ_STRING }, 1330 1335 { "--image-index", 'm', RTGETOPT_REQ_UINT32 }, … … 1333 1338 { "--post-install-command", 'P', RTGETOPT_REQ_STRING }, 1334 1339 { "--extra-install-kernel-parameters", 'I', RTGETOPT_REQ_STRING }, 1340 // start vm related options: 1335 1341 { "--session-type", 'S', RTGETOPT_REQ_STRING }, 1336 1342 }; … … 1423 1429 break; 1424 1430 1425 case 'x': // --auxiliary-base-path 1431 case 's': // --package-selection-adjustment 1432 arrPackageSelectionAdjustments.append(ValueUnion.psz); 1433 break; 1434 1435 case 'x': // --auxiliary-base-path 1426 1436 vrc = RTPathAbsCxx(strAbsAuxiliaryBasePath, ValueUnion.psz); 1427 1437 if (RT_FAILURE(vrc)) … … 1435 1445 break; 1436 1446 1437 case 'c': // --script-template1447 case 'c': // --script-template 1438 1448 vrc = RTPathAbsCxx(strAbsScriptTemplatePath, ValueUnion.psz); 1439 1449 if (RT_FAILURE(vrc)) … … 1442 1452 break; 1443 1453 1444 case 'C': // --post-install-script-template1454 case 'C': // --post-install-script-template 1445 1455 vrc = RTPathAbsCxx(strAbsPostInstallScriptTemplatePath, ValueUnion.psz); 1446 1456 if (RT_FAILURE(vrc)) … … 1551 1561 if (pszHostname) 1552 1562 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(Hostname)(Bstr(pszHostname).raw())); 1563 if (arrPackageSelectionAdjustments.size() == 1) 1564 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(PackageSelectionAdjustments)(Bstr(arrPackageSelectionAdjustments[0]).raw())); 1565 else if (arrPackageSelectionAdjustments.size() > 1) 1566 { 1567 RTCString strAdjustments; 1568 strAdjustments.join(arrPackageSelectionAdjustments, ";"); 1569 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(PackageSelectionAdjustments)(Bstr(strAdjustments).raw())); 1570 } 1571 1572 // advanced options: 1553 1573 if (fSetImageIdx) 1554 1574 CHECK_ERROR_BREAK(ptrUnattended, COMSETTER(ImageIndex)(idxImage)); … … 1603 1623 SHOW_STR_ATTR(Proxy, "proxy"); 1604 1624 SHOW_STR_ATTR(Hostname, "hostname"); 1625 SHOW_STR_ATTR(PackageSelectionAdjustments, "packageSelectionAdjustments"); 1605 1626 SHOW_STR_ATTR(AuxiliaryBasePath, "auxiliaryBasePath"); 1606 1627 SHOW_ATTR( ImageIndex, "imageIndex", ULONG, "%u");
Note:
See TracChangeset
for help on using the changeset viewer.