def packages(package_list): """Verify that a list of unixpackage packages are installed.""" if not unixpackage.packages_installed(package_list): raise HitchEnvironmentException(( "The following packages are required: {}.\n" "The command to install them on this environment is: {}.\n" ).format(', '.join(package_list), unixpackage.install_command(package_list)))
def packagecommand(): """Show command needed to run to install all system packages required by environment.""" echo(unixpackage.install_command(_all_required_packages()))