mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Updated slackware distribution branches
This commit is contained in:
parent
77ba2cf63a
commit
799bc676ed
1 changed files with 7 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue