'This method is a simple wrapper around the actual package
installation method in the Packager class. This is used
internally by the profilers, deps and tests code.
:param name: name of the package (ex: sleeptest, dbench etc.)
:param pkg_type: Type of the package (ex: test, dep etc.)
:param install_dir: The directory in which the source is actually
untarred into. (ex: client/profilers/<name> for profilers)'

def install_pkg(self, name, pkg_type, install_dir):

    if self.pkgmgr.repositories:
        self.pkgmgr.install_pkg(name, pkg_type, self.pkgdir, install_dir)
