Panda3D
Loading...
Searching...
No Matches
PackageMerger Class Reference

Classes

class  PackageEntry
 

Public Member Functions

 __init__ (self, installDir)
 
 close (self)
 
 merge (self, sourceDir, packageNames=None)
 

Public Attributes

dict contents = {}
 
 contentsDoc = doc
 
 contentsSeq = SeqValue()
 
 installDir = installDir
 
 maxAge = None
 
 xhost = None
 

Static Public Attributes

 notify = directNotify.newCategory("PackageMerger")
 

Detailed Description

 This class will combine two or more separately-built stage
directories, the output of Packager.py or the ppackage tool, into
a single output directory.  It assumes that the clocks on all
hosts are in sync, so that the file across all builds with the
most recent timestamp (indicated in the contents.xml file) is
always the most current version of the file. 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
installDir )

Member Function Documentation

◆ close()

close ( self)
 Finalizes the results of all of the previous calls to
merge(), writes the new contents.xml file, and copies in all
of the new contents. 

◆ merge()

merge ( self,
sourceDir,
packageNames = None )
 Adds the contents of the indicated source directory into
the current pool.  If packageNames is not None, it is a list
of package names that we wish to include from the source;
packages not named in this list will be unchanged. 

Member Data Documentation

◆ contents

dict contents = {}

◆ contentsDoc

contentsDoc = doc

◆ contentsSeq

contentsSeq = SeqValue()

◆ installDir

installDir = installDir

◆ maxAge

maxAge = None

◆ notify

notify = directNotify.newCategory("PackageMerger")
static

◆ xhost

xhost = None