Package dogtail :: Module distro :: Class PackageDb
[hide private]
[frames] | no frames]

Class PackageDb

source code

Known Subclasses:

Class to abstract the details of whatever software package database is in use (RPM, APT, etc)

Instance Methods [hide private]
 
__init__(self) source code
 
getVersion(self, packageName)
Method to get the version of an installed package as a Version instance (or raise an exception if not found)
source code
 
getFiles(self, packageName)
Method to get a list of filenames owned by the package, or raise an exception if not found.
source code
 
getMoFiles(self, locale=None)
Method to get a list of all .mo files on the system, optionally for a specific locale.
source code
 
getDependencies(self, packageName)
Method to get a list of unique package names that this package is dependent on, or raise an exception if the package is not found.
source code
Method Details [hide private]

getVersion(self, packageName)

source code 

Method to get the version of an installed package as a Version instance (or raise an exception if not found)

Note: does not know about distributions' internal revision numbers.