# /*
#  * Copyright (C) 2020, KylinSoft Co., Ltd.
#  *
#  * This program is free software: you can redistribute it and/or modify
#  * it under the terms of the GNU General Public License as published by
#  * the Free Software Foundation, either version 3 of the License, or
#  * (at your option) any later version.
#  *
#  * This program is distributed in the hope that it will be useful,
#  * but WITHOUT ANY WARRANTY; without even the implied warranty of
#  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  * GNU General Public License for more details.
#  *
#  * You should have received a copy of the GNU General Public License
#  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
#  */
import os

UPDATE_ROOT = "/opt/update-module"
MANIFESTS_DIR = "/usr/share/update-manifests"
VERSIONS_DIR = os.path.join(UPDATE_ROOT, "versions")
CURRENT_PROGRESS = os.path.join(UPDATE_ROOT, "current")
HOOKS_ROOT = os.path.join(CURRENT_PROGRESS, "hooks")

PUTSH_CONTENT_LOCATION = "/opt/kylin-software-properties/ostree-important.list"

OFFLINE_REPO_POST = "/media/OfflineSource"

OUTPUT_JSON_PATH = '/var/cache/kylin-system-updater/json/'

SYSTEM_UPDATE_GROUPS = "kylin-update-desktop-system"

UPDATER_PACKAGE_NAME = "kylin-system-updater"

CONTROL_CONTER_SENDER = "/usr/bin/ukui-control-center"

KYLIN_OS_NAME = "kylin"

DEFAULT_REPO_NAME = "kylin"

if os.path.isdir("/opt/update-module/current/usr/share/kylin-system-updater/locale"):
    LOCALE_LANGUAGE_PATH = "/opt/update-module/current/usr/share/kylin-system-updater/locale"
else:
    LOCALE_LANGUAGE_PATH = "/usr/share/kylin-system-updater/locale"

HISTORY_LIST_LEN = 10