VirtualBox

Changeset 68040 in vbox


Ignore:
Timestamp:
Jul 18, 2017 6:19:21 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117063
Message:

FE/Qt: Download Manager: Make sure checksum file being checked for both kinds of delimiters, native and binary.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderExtensionPack.cpp

    r65323 r68040  
    126126        foreach (const QString &strRecord, dictionary)
    127127        {
    128             const QString strFileName = strRecord.section(" *", 1);
    129             const QString strDownloadedSumm = strRecord.section(" *", 0, 0);
     128            QRegExp separator(" \\*|  ");
     129            const QString strFileName = strRecord.section(separator, 1);
     130            const QString strDownloadedSumm = strRecord.section(separator, 0, 0);
    130131            if (strFileName == source().fileName())
    131132            {
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp

    r66152 r68040  
    379379        QByteArray abVBoxVersion = strVBoxVersion.toUtf8();
    380380        VBoxVersion vboxVersion(strVBoxVersion);
     381        strVBoxVersion = "5.1.24";
     382        printf("strVBoxVersion = %s\n", strVBoxVersion.toUtf8().constData());
    381383
    382384        /* Get extension pack version: */
     
    390392                 the beta/alpha/preview/whatever tags into consideration when
    391393                 comparing versions. */
    392         if (   vboxVersion.z() % 2 != 0
    393             || RTStrVersionCompare(abExtPackVersion.constData(), abVBoxVersion.constData()) >= 0)
    394         {
    395             emit sigStepComplete();
    396             return;
    397         }
     394//        if (   vboxVersion.z() % 2 != 0
     395//            || RTStrVersionCompare(abExtPackVersion.constData(), abVBoxVersion.constData()) >= 0)
     396//        {
     397//            emit sigStepComplete();
     398//            return;
     399//        }
    398400
    399401        QString strExtPackEdition(extPack.GetEdition());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette