Panda3D
Public Member Functions | Public Attributes | List of all members
PatchMaker.Package Class Reference

Public Member Functions

def __init__ (self, packageDesc, patchMaker, xpackage=None)
 
def getBaseKey (self)
 
def getCurrentKey (self)
 
def getGenericKey (self, fileSpec)
 
def getTopKey (self)
 
def readDescFile (self, doProcessing=False)
 
def writeDescFile (self)
 

Public Attributes

 anyChanges
 
 baseFile
 
 basePv
 
 compressedFilename
 
 contentsDocPackage
 
 currentFile
 
 currentPv
 
 doc
 
 hostUrl
 
 packageDesc
 
 packageDir
 
 packageName
 
 patches
 
 patchMaker
 
 patchVersion
 
 platform
 
 topFile
 
 topPv
 
 version
 

Detailed Description

This is a particular package.  This contains all of the
information needed to reconstruct the package's desc file. 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  packageDesc,
  patchMaker,
  xpackage = None 
)

Member Function Documentation

◆ getBaseKey()

def getBaseKey (   self)
Returns the key to locate the "base" or oldest version
of this package. 

◆ getCurrentKey()

def getCurrentKey (   self)
Returns the key to locate the current version of this
package. 

◆ getGenericKey()

def getGenericKey (   self,
  fileSpec 
)
Returns the key that has the indicated hash. 

◆ getTopKey()

def getTopKey (   self)
Returns the key to locate the "top" or newest version
of this package. 

◆ readDescFile()

def readDescFile (   self,
  doProcessing = False 
)
Reads the existing package.xml file and stores it in
this class for later rewriting.  if doProcessing is true,
it may massage the file and the directory contents in
preparation for building patches.  Returns true on
success, false on failure. 

◆ writeDescFile()

def writeDescFile (   self)
Rewrites the desc file with the new patch
information. 

Member Data Documentation

◆ anyChanges

anyChanges

◆ baseFile

baseFile

◆ basePv

basePv

◆ compressedFilename

compressedFilename

◆ contentsDocPackage

contentsDocPackage

◆ currentFile

currentFile

◆ currentPv

currentPv

◆ doc

doc

◆ hostUrl

hostUrl

◆ packageDesc

packageDesc

◆ packageDir

packageDir

◆ packageName

packageName

◆ patches

patches

◆ patchMaker

patchMaker

◆ patchVersion

patchVersion

◆ platform

platform

◆ topFile

topFile

◆ topPv

topPv

◆ version

version