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

# Declaring specific app values (TO CHANGE)
package_name = "google-chrome-stable"
yum_source = makepath("/", "etc", "yum.repos.d", "google-chrome.list")


def install():
    # Declaring specific app values
    bin_name_rpm = "google-chrome-stable_current_x86_64.rpm"

    # Installing the package
    if type_redhat():
        print("Installing %s" % bin_name_rpm)
        install_yum(bin_name_rpm)

    # Deleting sources files
    if isfile(yum_source):
        print("Removing " + yum_source)
        remove_file(yum_source)


def uninstall():
    # Uninstalling the package
    print("Uninstalling %s" % package_name)
    uninstall_yum(package_name)
