Changeset 85688 in vbox for trunk/src/VBox
- Timestamp:
- Aug 11, 2020 12:37:34 PM (4 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r85683 r85688 858 858 systemProperties->COMGETTER(VBoxUpdateLastCheckDate)(str.asOutParam()); 859 859 RTPrintf("Last check date: %ls\n", str.raw()); 860 860 861 861 return S_OK; 862 862 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageUpdateCheck.cpp
r85685 r85688 48 48 RTGETOPTSTATE GetState; 49 49 /** @todo r=brent decide on the best approach for options to specify here */ 50 static const RTGETOPTDEF s_aOptions[] = 50 static const RTGETOPTDEF s_aOptions[] = 51 51 { 52 52 { "--verbose", 'v', RTGETOPT_REQ_NOTHING } … … 272 272 return RTEXITCODE_FAILURE; 273 273 } 274 274 275 275 /* HRESULT hrc = */ showProgress(progress); 276 276 CHECK_PROGRESS_ERROR_RET(progress, ("Check for update failed."), RTEXITCODE_FAILURE); … … 314 314 // VBoxManage updatecheck getsettings 315 315 return doVBoxUpdateGetSettings(a->argc - 1, &a->argv[1], a->virtualBox); 316 } 316 } 317 317 else if (!strcmp(a->argv[0], "modifysettings")) 318 318 { -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r85683 r85688 11393 11393 11394 11394 <attribute name="VBoxUpdateLastCheckDate" type="wstring" readonly="no"> 11395 <desc> 11395 <desc> 11396 11396 When was the update check last performed? If updating this attribute the 11397 11397 string must be in ISO 8601 format (e.g. 2020-05-11T21:13:39.348416000Z). -
trunk/src/VBox/Main/src-server/HostUpdateImpl.cpp
r85686 r85688 48 48 //////////////////////////////////////////////////////////////////////////////// 49 49 // 50 // HostUpdate private data definition 51 // 50 // HostUpdate private data definition 51 // 52 52 //////////////////////////////////////////////////////////////////////////////// 53 53 54 54 55 55 class HostUpdate::UpdateCheckTask : public ThreadTask … … 165 165 vrc = RTPipeReadBlocking(hPipeR, achBuf, sizeof(achBuf), &cbRead); 166 166 if (RT_SUCCESS(vrc)) 167 { 167 { 168 168 /* grow the buffer? */ 169 169 size_t cbBufReq = offStdOutBuf + cbRead + 1; … … 225 225 } 226 226 227 LogRelFunc(("strPlatform (Linux) = %s\n", strPlatform.c_str())); 227 LogRelFunc(("strPlatform (Linux) = %s\n", strPlatform.c_str())); 228 228 229 229 if (RT_FAILURE(vrc)) … … 252 252 strPlatform.append("]"); 253 253 254 LogRelFunc(("strPlatform = %s\n", strPlatform.c_str())); 254 LogRelFunc(("strPlatform = %s\n", strPlatform.c_str())); 255 255 } 256 256 … … 287 287 if (FAILED(rc)) 288 288 return setErrorVrc(rc, tr("%s: IVirtualBox::revision() failed: %Rrc"), __FUNCTION__, rc); 289 url.appendPrintf("_%ld", revision); // e.g. 135618 289 url.appendPrintf("_%ld", revision); // e.g. 135618 290 290 291 291 // acquire the System Properties interface … … 343 343 return rc; // ISystemProperties::setTarget calls setError() on failure 344 344 345 LogRelFunc(("VBox update URL = %s\n", Utf8Str(url).c_str())); 345 LogRelFunc(("VBox update URL = %s\n", Utf8Str(url).c_str())); 346 346 347 347 // Setup the User-Agent headers for the GET request … … 394 394 if (RT_FAILURE(vrc)) 395 395 return setErrorVrc(vrc, tr("%s: RTHttpGetBinary() failed: %Rrc"), __FUNCTION__, vrc); 396 396 397 397 RTCList<RTCString> lstHttpReply = RTCString((char *)pvResponse, (size_t)cbResponse).split(" ", RTCString::RemoveEmptyParts); 398 398 RTHttpFreeResponse(pvResponse); … … 538 538 TRUE /* aCancelable */); 539 539 if (FAILED(rc)) 540 { 540 { 541 541 return rc; 542 542 } … … 581 581 582 582 HRESULT HostUpdate::getUpdateResponse(BOOL *aUpdateNeeded) 583 { 583 { 584 584 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 585 585 … … 590 590 591 591 HRESULT HostUpdate::getUpdateCheckNeeded(BOOL *aUpdateCheckNeeded) 592 { 592 { 593 593 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 594 594
Note:
See TracChangeset
for help on using the changeset viewer.