Package linda :: Module libchecks :: Class LindaChecker
[hide private]

Class LindaChecker

source code


    The LindaChecker class is used by all checks, as they inheriate from it. It provides an initialisation method that sets up internal variables for the
check to use, such as:
     - self.lab: The lab directory itself.
     - self.err_dict: The error dictionary. There should be no need to access this directly.
     - self.file: The check file itself.
     - self.pkg_name: The package name being checked.
     - self.version: The package version being checked.
     - self.information: Contains information such as what files are contained in the package, and what 'file', 'objdump' and 'ldd' outputs for each of them. See the documentation on Collector for more information.

     This method also provides a hook method called init, which means checks can also perform their own initisagtion.
    



Instance Methods [hide private]
 
__init__(self, lab, file, information) source code
 
signal_error(self, tag=None, message=[])
This method is called whenever an error is encountered in a package.
source code
 
is_native(self)
This method checks if the version of a package is native.
source code
Method Details [hide private]

signal_error(self, tag=None, message=[])

source code 
This method is called whenever an error is encountered in a package. It adds the tag and data to the internal err_dict object.

is_native(self)

source code 
This method checks if the version of a package is native. It returns false if the package is not native, and returns true if it is.