Panda3D
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PackageMerger Class Reference

Classes

class  PackageEntry
 

Public Member Functions

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

Public Attributes

 contents
 
 contentsDoc
 
 contentsSeq
 
 installDir
 
 maxAge
 
 xhost
 

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__()

def __init__ (   self,
  installDir 
)

Member Function Documentation

◆ close()

def 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()

def 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

contents

◆ contentsDoc

contentsDoc

◆ contentsSeq

contentsSeq

◆ installDir

installDir

◆ maxAge

maxAge

◆ notify

notify = directNotify.newCategory("PackageMerger")
static

◆ xhost

xhost