VirtualBox

Changeset 46972 in vbox


Ignore:
Timestamp:
Jul 4, 2013 8:57:23 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86980
Message:

pr6022. Relative paths in the OVA package are processed from now.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r46971 r46972  
    21102110
    21112111    const Utf8Str &strSourceOVF = di.strHref;
     2112
     2113    Utf8Str strSrcFilePath(stack.strSourceDir);
    21122114    /* Construct source file path */
    2113     Utf8StrFmt strSrcFilePath("%s%c%s", stack.strSourceDir.c_str(), RTPATH_DELIMITER, strSourceOVF.c_str());
     2115    Utf8Str name = applianceIOName(applianceIOTar);
     2116
     2117    if (RTStrNICmp(pStorage->pVDImageIfaces->pszInterfaceName, name.c_str(), name.length()) == 0)
     2118        strSrcFilePath = strSourceOVF;
     2119    else
     2120    {
     2121        strSrcFilePath.append(RTPATH_SLASH_STR);
     2122        strSrcFilePath.append(strSourceOVF);
     2123    }
    21142124
    21152125    /* First of all check if the path is an UUID. If so, the user like to
  • trunk/src/VBox/Runtime/common/checksum/manifest.cpp

    r45354 r46972  
    455455        for (size_t i = 0; i < cTests; ++i)
    456456        {
    457             if (!RTStrCmp(RTPathFilename(paFiles[i].pTestPattern->pszTestFile), RTStrStrip(pszName)))
     457            if (RTStrStr(paFiles[i].pTestPattern->pszTestFile, RTStrStrip(pszName)) != NULL)
    458458            {
    459459                /* Add the data of the manifest file to the file list */
     
    492492            }
    493493
    494             /* Do the manifest SHA1 digest match against the actual digest? */
     494            /* Do the manifest SHA digest match against the actual digest? */
    495495            if (RTStrICmp(paFiles[i].pszManifestDigest, paFiles[i].pTestPattern->pszTestDigest))
    496496            {
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