OPSI.Util.Product module

Products.

copyright:uib GmbH <info@uib.de>
author:Jan Schneider <j.schneider@uib.de>
author:Niko Wenselowski <n.wenselowski@uib.de>
license:GNU Affero General Public License version 3
class OPSI.Util.Product.ProductPackageFile(packageFile, tempDir=None)

Bases: object

cleanup()
createPackageContentFile()
deleteProductClientDataDir()
extractData()
getClientDataFiles()
getMetaData()
getProductClientDataDir()
install(clientDataDir, suppressPackageContentFileGeneration=False)

Install a package.

This runs the preinst-script, extracts the data, creates a package content file, sets the rights on extracted files, runs the postinst and removes temporary files created during the installation.

Setting suppressPackageContentFileGeneration to True will suppress the creation of the package content file.

runPostinst(env={})
runPreinst(env={})
setAccessRights()
setClientDataDir(clientDataDir)
uninstall()
unpackSource(destinationDir=u'.', newProductId=None, progressSubject=None)
class OPSI.Util.Product.ProductPackageSource(packageSourceDir, tempDir=None, customName=None, customOnly=False, packageFileDestDir=None, format='cpio', compression='gzip', dereference=False)

Bases: object

cleanup()
getPackageFile()
pack(progressSubject=None)