mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fix failure to update import.xml hash after modifying it
This commit is contained in:
parent
b2da92fefb
commit
9f9ed8bc56
@ -526,7 +526,8 @@ class PatchMaker:
|
||||
# Also copy the seq to the import desc file, for
|
||||
# documentation purposes.
|
||||
|
||||
importDescFullpath = Filename(self.patchMaker.installDir, self.packageDesc.cStr()[:-3] + 'import.xml')
|
||||
importDescFilename = self.packageDesc.cStr()[:-3] + 'import.xml'
|
||||
importDescFullpath = Filename(self.patchMaker.installDir, importDescFilename)
|
||||
doc = TiXmlDocument(importDescFullpath.toOsSpecific())
|
||||
if doc.LoadFile():
|
||||
xpackage = doc.FirstChildElement('package')
|
||||
@ -544,6 +545,13 @@ class PatchMaker:
|
||||
fileSpec.fromFile(self.patchMaker.installDir, self.packageDesc)
|
||||
fileSpec.storeXml(self.contentsDocPackage)
|
||||
|
||||
# Also important to update the import.xml hash.
|
||||
ximport = self.contentsDocPackage.FirstChildElement('import')
|
||||
if ximport:
|
||||
fileSpec = FileSpec()
|
||||
fileSpec.fromFile(self.patchMaker.installDir, importDescFilename)
|
||||
fileSpec.storeXml(ximport)
|
||||
|
||||
# Also copy the package seq value into the
|
||||
# contents.xml file, mainly for documentation purposes
|
||||
# (the authoritative seq value is within the desc
|
||||
|
Loading…
x
Reference in New Issue
Block a user