- Timestamp:
- Aug 29, 2010 9:36:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImplExport.cpp
r31698 r32064 660 660 * 661 661 * @param elmToAddVirtualSystemsTo XML element to append elements to. 662 * @param pllElementsWithUuidAttributes out: list of XML elements produced here with UUID attributes for quick fixing by caller later 662 663 * @param vsdescThis The IVirtualSystemDescription instance for which to write XML. 663 664 * @param enFormat OVF format (0.9 or 1.0). … … 1598 1599 // but those would refer to the UUID of the _source_ image (which we created the 1599 1600 // export image from); those UUIDs need to be fixed to the export image 1601 Utf8Str strGuidSourceCurly = guidSource.toStringCurly(); 1600 1602 for (std::list<xml::ElementNode*>::iterator eit = llElementsWithUuidAttributes.begin(); 1601 1603 eit != llElementsWithUuidAttributes.end(); … … 1603 1605 { 1604 1606 xml::ElementNode *pelmImage = *eit; 1605 // overwrite existing uuid attribute 1606 pelmImage->setAttribute("uuid", guidTarget.toStringCurly()); 1607 Utf8Str strUUID; 1608 pelmImage->getAttributeValue("uuid", strUUID); 1609 if (strUUID == strGuidSourceCurly) 1610 // overwrite existing uuid attribute 1611 pelmImage->setAttribute("uuid", guidTarget.toStringCurly()); 1607 1612 } 1608 1613 }
Note:
See TracChangeset
for help on using the changeset viewer.