VirtualBox

Ignore:
Timestamp:
Jun 30, 2009 3:19:12 PM (15 years ago)
Author:
vboxsync
Message:

back out r49329, r49331, will start over

File:
1 edited

Legend:

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

    r21073 r21077  
    2626#include <iprt/file.h>
    2727#include <iprt/s3.h>
    28 #include "iprt/xml_cpp.h"
    2928
    3029#include <VBox/param.h>
     
    4039
    4140#include "Logging.h"
     41
     42#include "VBox/xml.h"
    4243
    4344using namespace std;
     
    233234//
    234235////////////////////////////////////////////////////////////////////////////////
     236
     237static Utf8Str stripFilename(const Utf8Str &strFile)
     238{
     239    Utf8Str str2(strFile);
     240    RTPathStripFilename(str2.mutableRaw());
     241    return str2;
     242}
    235243
    236244static const struct
     
    22382246                    /* The disk image has to be on the same place as the OVF file. So
    22392247                     * strip the filename out of the full file path. */
    2240                     Utf8Str strSrcDir(pAppliance->m->strPath);
    2241                     strSrcDir.stripFilename();
     2248                    Utf8Str strSrcDir = stripFilename(pAppliance->m->strPath);
    22422249
    22432250                    /* Iterate over all given disk images */
     
    35153522            const Utf8Str &strTargetFileNameOnly = pDiskEntry->strOvf;
    35163523            // target path needs to be composed from where the output OVF is
    3517             Utf8Str strTargetFilePath(m->strPath);
    3518             strTargetFilePath.stripFilename();
     3524            Utf8Str strTargetFilePath = stripFilename(m->strPath);
    35193525            strTargetFilePath.append("/");
    35203526            strTargetFilePath.append(strTargetFileNameOnly);
     
    37153721                const Utf8Str &strTargetFileNameOnly = (*itH)->strOvf;
    37163722                /* Target path needs to be composed from where the output OVF is */
    3717                 Utf8Str strTargetFilePath(m->strPath);
    3718                 strTargetFilePath.stripFilename();
     3723                Utf8Str strTargetFilePath = stripFilename(m->strPath);
    37193724                strTargetFilePath.append("/");
    37203725                strTargetFilePath.append(strTargetFileNameOnly);
     
    47314736
    47324737            Utf8Str strTargetVmdkName(bstrName);
    4733             strTargetVmdkName.stripExt();
     4738            RTPathStripExt(strTargetVmdkName.mutableRaw());
    47344739            strTargetVmdkName.append(".vmdk");
    47354740
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