Changeset 70722 in vbox
- Timestamp:
- Jan 24, 2018 11:54:30 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120467
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderExtensionPack.cpp
r69500 r70722 61 61 m_spInstance = this; 62 62 63 /* Get version number and adjust it for test and trunk builds, 64 * both have odd build numbers. The server only has official releases. */ 65 QString strVersion = vboxGlobal().vboxVersionStringNormalized(); 66 const QChar qchLastDigit = strVersion[strVersion.length() - 1]; 67 if ( qchLastDigit == '1' 68 || qchLastDigit == '3' 69 || qchLastDigit == '5' 70 || qchLastDigit == '7' 71 || qchLastDigit == '9') 72 { 73 if ( !strVersion.endsWith(".51") 74 && !strVersion.endsWith(".53") 75 && !strVersion.endsWith(".97") 76 && !strVersion.endsWith(".99")) 77 strVersion[strVersion.length() - 1] = qchLastDigit.toLatin1() - 1; 78 else 79 { 80 strVersion.chop(2); 81 strVersion += "6"; /* Current for 5.2.x */ 82 } 83 } 84 63 85 /* Prepare source/target: */ 64 QString strVersion = vboxGlobal().vboxVersionStringNormalized(); 65 QString strExtPackUnderscoredName(QString(GUI_ExtPackName).replace(' ', '_')); 66 QString strTemplateSourcePath("http://download.virtualbox.org/virtualbox/%1/"); 67 QString strTemplateSourceName(QString("%1-%2.vbox-extpack").arg(strExtPackUnderscoredName)); 68 QString strSourcePath(strTemplateSourcePath.arg(strVersion)); 69 QString strSourceName(strTemplateSourceName.arg(strVersion)); 70 QString strSource(strSourcePath + strSourceName); 71 QString strPathSHA256SumsFile = QString("https://www.virtualbox.org/download/hashes/%1/SHA256SUMS").arg(strVersion); 72 QString strTargetPath(vboxGlobal().homeFolder()); 73 QString strTargetName(strSourceName); 74 QString strTarget(QDir(strTargetPath).absoluteFilePath(strTargetName)); 86 const QString strUnderscoredName = QString(GUI_ExtPackName).replace(' ', '_'); 87 const QString strSourceName = QString("%1-%2.vbox-extpack").arg(strUnderscoredName, strVersion); 88 const QString strSourcePath = QString("https://download.virtualbox.org/virtualbox/%1/").arg(strVersion); 89 const QString strSource = strSourcePath + strSourceName; 90 const QString strPathSHA256SumsFile = QString("https://www.virtualbox.org/download/hashes/%1/SHA256SUMS").arg(strVersion); 91 const QString strTarget = QDir(vboxGlobal().homeFolder()).absoluteFilePath(strSourceName); 75 92 76 93 /* Set source/target: */
Note:
See TracChangeset
for help on using the changeset viewer.