# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
def install():
    # Installing the package
    bin_name = glob.glob("*dbeaver-ce*")[0]
    print("Installing: %s" % bin_name)
    if get_distrib_linux() == 'fedora':
        install_yum(bin_name)
    else:
        install_rpm(bin_name)


def uninstall():
    # Uninstalling the package
    print("Uninstalling: dbeaver-ce")
    uninstall_yum("dbeaver-ce")
    autoremove_yum()



