VirtualBox

Changeset 70850 in vbox


Ignore:
Timestamp:
Feb 1, 2018 3:54:31 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120667
Message:

FE/Qt: bugref:9104: Small fix for UIUpdateManager, allow to check for recent EP from release branches to ease the testing.

File:
1 edited

Legend:

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

    r70824 r70850  
    366366
    367367        /* Get VirtualBox version: */
    368         QString strVBoxVersion(vboxGlobal().vboxVersionStringNormalized());
    369         QByteArray abVBoxVersion = strVBoxVersion.toUtf8();
    370         UIVersion vboxVersion(strVBoxVersion);
    371 
     368        UIVersion vboxVersion(vboxGlobal().vboxVersionStringNormalized());
    372369        /* Get extension pack version: */
    373370        QString strExtPackVersion(extPack.GetVersion());
    374371        QByteArray abExtPackVersion = strExtPackVersion.toUtf8();
    375372
    376         /* Skip the check in unstable VBox version and if the extension pack
    377            is equal to or newer than VBox.
    378 
    379            Note! Use RTStrVersionCompare for the comparison here as it takes
    380                  the beta/alpha/preview/whatever tags into consideration when
    381                  comparing versions. */
    382         if (   vboxVersion.z() % 2 != 0
    383             || RTStrVersionCompare(abExtPackVersion.constData(), abVBoxVersion.constData()) >= 0)
     373        /* If this version being developed: */
     374        if (vboxVersion.z() % 2 == 1)
     375        {
     376            /* If this version being developed on release branch (we use released one): */
     377            if (vboxVersion.z() < 97)
     378                vboxVersion.setZ(vboxVersion.z() - 1);
     379            /* If this version being developed on trunk (we skip check at all): */
     380            else
     381            {
     382                emit sigStepComplete();
     383                return;
     384            }
     385        }
     386
     387        /* Get updated VirtualBox version: */
     388        const QString strVBoxVersion = vboxVersion.toString();
     389
     390        /* Skip the check if the extension pack is equal to or newer than VBox.
     391         * Note! Use RTStrVersionCompare for the comparison here as it takes the
     392         *       beta/alpha/preview/whatever tags into consideration when comparing versions. */
     393        if (RTStrVersionCompare(abExtPackVersion.constData(), strVBoxVersion.toUtf8().constData()) >= 0)
    384394        {
    385395            emit sigStepComplete();
Note: See TracChangeset for help on using the changeset viewer.

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