Changeset 58737 in vbox
- Timestamp:
- Nov 18, 2015 12:21:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderAdditions.cpp
r58422 r58737 58 58 m_spInstance = this; 59 59 60 /* Get version number and adjust it for test and trunk builds, both have 61 odd build numbers. The server only has official releases. */ 62 QString strVersion = vboxGlobal().vboxVersionStringNormalized(); 63 QChar qchLastDigit = strVersion[strVersion.length() - 1]; 64 if ( qchLastDigit == '1' 65 || qchLastDigit == '3' 66 || qchLastDigit == '5' 67 || qchLastDigit == '7' 68 || qchLastDigit == '9') 69 { 70 if ( !strVersion.endsWith(".51") 71 && !strVersion.endsWith(".53") 72 && !strVersion.endsWith(".97") 73 && !strVersion.endsWith(".99")) 74 strVersion[strVersion.length() - 1] = qchLastDigit.toAscii() - 1; 75 else 76 { 77 strVersion.chop(2); 78 strVersion += "10"; /* Current for 5.0.x */ 79 } 80 } 81 60 82 /* Prepare source/target: */ 61 const QString &strName = QString("VBoxGuestAdditions_%1.iso").arg( vboxGlobal().vboxVersionStringNormalized());62 const QString &strSource = QString("http://download.virtualbox.org/virtualbox/%1/").arg( vboxGlobal().vboxVersionStringNormalized()) + strName;83 const QString &strName = QString("VBoxGuestAdditions_%1.iso").arg(strVersion); 84 const QString &strSource = QString("http://download.virtualbox.org/virtualbox/%1/").arg(strVersion) + strName; 63 85 const QString &strTarget = QDir(vboxGlobal().homeFolder()).absoluteFilePath(strName); 64 86
Note:
See TracChangeset
for help on using the changeset viewer.