Updated slackware distribution branches

This commit is contained in:
Dimitris Zlatanidis 2022-04-30 21:38:13 +03:00
parent 77ba2cf63a
commit 799bc676ed

View file

@ -24,6 +24,10 @@
import os
# Slackware distribution branches
STABLE = "stable"
CURRENT = "current"
def remove_repositories(repositories, default_repositories):
"""
@ -67,7 +71,7 @@ def select_slack_release(slack_rel):
Warning message if Slackware release not defined or
defined wrong
"""
if slack_rel not in ["stable", "current"]:
if slack_rel not in [STABLE, CURRENT]:
return "FAULT"
return slack_rel
@ -84,7 +88,7 @@ class MetaData:
__homepage__ = "https://dslackw.gitlab.io/slpkg/"
# Default Slackware release
slack_rel = "stable"
slack_rel = STABLE
# Configuration path
conf_path = f"/etc/{__all__}/"
@ -95,7 +99,7 @@ class MetaData:
# Default configuration values
_conf_slpkg = {
"RELEASE": "stable",
"RELEASE": STABLE,
"SLACKWARE_VERSION": "off",
"COMP_ARCH": "off",
"REPOSITORIES": ["slack", "sbo", "rlw", "alien",