Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def sandbox::TestOSLib::install_package (   self,
  package,
  ui 
)

Install the given package.

The current UI object is passed as well, in case package installation
wants to do some callbacks/confirmation dialogs/queries.

If this succeeds, subsequent package_installed(package) calls must
return True.

Reimplemented from jockey::oslib::OSLib.

Definition at line 453 of file sandbox.py.

00453                                           :
        '''Install the given package.

        The current UI object is passed as well, in case package installation
        wants to do some callbacks/confirmation dialogs/queries.

        If this succeeds, subsequent package_installed(package) calls must
        return True.'''

        assert package in fake_pkginfo
        if self.next_package_install_fails:
            self.next_package_install_fails = False
        else:
            self.installed_packages.add(package)

    def remove_package(self, package, ui):


Generated by  Doxygen 1.6.0   Back to index