VirtualBox

Changeset 107190 in vbox


Ignore:
Timestamp:
Nov 29, 2024 1:36:34 PM (7 weeks ago)
Author:
vboxsync
Message:

src/VBox/Main/src-server/UnattendedInstaller.cpp: Fixed odd conditions (_arm64 variant implies the _x64 one), found by Parfait.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp

    r106458 r107190  
    8181    {
    8282        if (   enmDetectedOSType >= VBOXOSTYPE_Debian
    83             && (   enmDetectedOSType <= VBOXOSTYPE_Debian_latest_x64
    84                 || enmDetectedOSType <= VBOXOSTYPE_Debian_latest_arm64))
     83            && enmDetectedOSType <= VBOXOSTYPE_Debian_latest_arm64)
    8584            pUinstaller = new UnattendedDebianInstaller(pParent);
    8685        else if (   enmDetectedOSType >= VBOXOSTYPE_Ubuntu
    87                  && (   enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_x64
    88                      || enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_arm64))
     86                 && enmDetectedOSType <= VBOXOSTYPE_Ubuntu_latest_arm64)
    8987        {
    9088            /*
     
    123121            pUinstaller = new UnattendedFedoraInstaller(pParent);
    124122        else if (   enmDetectedOSType >= VBOXOSTYPE_Oracle
    125                  && (   enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_x64
    126                      || enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_arm64))
     123                 && enmDetectedOSType <= VBOXOSTYPE_Oracle_latest_arm64)
    127124        {
    128125            if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "9") >= 0)
     
    138135        }
    139136        else if (   enmDetectedOSType >= VBOXOSTYPE_FreeBSD
    140                  && (   enmDetectedOSType <= VBOXOSTYPE_FreeBSD_x64
    141                      || enmDetectedOSType <= VBOXOSTYPE_FreeBSD_arm64))
     137                 && enmDetectedOSType <= VBOXOSTYPE_FreeBSD_arm64)
    142138            pUinstaller = new UnattendedFreeBsdInstaller(pParent);
    143139#if 0 /* doesn't work, so convert later. */
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