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

Class PackageDb

source code

object --+
         |
        PackageDb
Known Subclasses:

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

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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.