VirtualBox

Changeset 34938 in vbox


Ignore:
Timestamp:
Dec 10, 2010 9:15:46 AM (14 years ago)
Author:
vboxsync
Message:

ExtPackManager: use VBOX_EXTPACK_LICENSE_NAME_PREFIX

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ExtPackManagerImpl.cpp

    r34907 r34938  
    450450     * Combine the options to form a file name before locking down anything.
    451451     */
    452     char szName[sizeof("ExtPack-license-de_DE.html") + 2];
     452    char szName[sizeof(VBOX_EXTPACK_LICENSE_NAME_PREFIX "-de_DE.html") + 2];
    453453    if (strPreferredLocale.isNotEmpty() && strPreferredLanguage.isNotEmpty())
    454         RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s_%s.%s",
     454        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s_%s.%s",
    455455                    strPreferredLocale.c_str(), strPreferredLanguage.c_str(), strFormat.c_str());
    456456    else if (strPreferredLocale.isNotEmpty())
    457         RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s.%s",  strPreferredLocale.c_str(), strFormat.c_str());
     457        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s",  strPreferredLocale.c_str(), strFormat.c_str());
    458458    else if (strPreferredLanguage.isNotEmpty())
    459         RTStrPrintf(szName, sizeof(szName), "ExtPack-license-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());
     459        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());
    460460    else
    461         RTStrPrintf(szName, sizeof(szName), "ExtPack-license.%s",     strFormat.c_str());
     461        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s",     strFormat.c_str());
    462462
    463463    /*
     
    16071607     * Combine the options to form a file name before locking down anything.
    16081608     */
    1609     char szName[sizeof("ExtPack-license-de_DE.html") + 2];
     1609    char szName[sizeof(VBOX_EXTPACK_LICENSE_NAME_PREFIX "-de_DE.html") + 2];
    16101610    if (strPreferredLocale.isNotEmpty() && strPreferredLanguage.isNotEmpty())
    1611         RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s_%s.%s",
     1611        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s_%s.%s",
    16121612                    strPreferredLocale.c_str(), strPreferredLanguage.c_str(), strFormat.c_str());
    16131613    else if (strPreferredLocale.isNotEmpty())
    1614         RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s.%s",  strPreferredLocale.c_str(), strFormat.c_str());
     1614        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s",  strPreferredLocale.c_str(), strFormat.c_str());
    16151615    else if (strPreferredLanguage.isNotEmpty())
    1616         RTStrPrintf(szName, sizeof(szName), "ExtPack-license-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());
     1616        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());
    16171617    else
    1618         RTStrPrintf(szName, sizeof(szName), "ExtPack-license.%s",     strFormat.c_str());
     1618        RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s",     strFormat.c_str());
    16191619
    16201620    /*
  • trunk/src/VBox/Main/include/ExtPackUtil.h

    r34893 r34938  
    3838 * and format (HTML, RTF, plain text). All extension packages shall include
    3939 * a  */
    40 #define VBOX_EXTPACK_LICENSE_NAME_PREFIX "ExtPack.license"
     40#define VBOX_EXTPACK_LICENSE_NAME_PREFIX "ExtPack-license"
    4141/** @name VBOX_EXTPACK_SUFFIX
    4242 * The suffix of a extension pack tarball. */
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