mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +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
|
import os
|
||||||
|
|
||||||
|
# Slackware distribution branches
|
||||||
|
STABLE = "stable"
|
||||||
|
CURRENT = "current"
|
||||||
|
|
||||||
|
|
||||||
def remove_repositories(repositories, default_repositories):
|
def remove_repositories(repositories, default_repositories):
|
||||||
"""
|
"""
|
||||||
|
@ -67,7 +71,7 @@ def select_slack_release(slack_rel):
|
||||||
Warning message if Slackware release not defined or
|
Warning message if Slackware release not defined or
|
||||||
defined wrong
|
defined wrong
|
||||||
"""
|
"""
|
||||||
if slack_rel not in ["stable", "current"]:
|
if slack_rel not in [STABLE, CURRENT]:
|
||||||
return "FAULT"
|
return "FAULT"
|
||||||
return slack_rel
|
return slack_rel
|
||||||
|
|
||||||
|
@ -84,7 +88,7 @@ class MetaData:
|
||||||
__homepage__ = "https://dslackw.gitlab.io/slpkg/"
|
__homepage__ = "https://dslackw.gitlab.io/slpkg/"
|
||||||
|
|
||||||
# Default Slackware release
|
# Default Slackware release
|
||||||
slack_rel = "stable"
|
slack_rel = STABLE
|
||||||
|
|
||||||
# Configuration path
|
# Configuration path
|
||||||
conf_path = f"/etc/{__all__}/"
|
conf_path = f"/etc/{__all__}/"
|
||||||
|
@ -95,7 +99,7 @@ class MetaData:
|
||||||
|
|
||||||
# Default configuration values
|
# Default configuration values
|
||||||
_conf_slpkg = {
|
_conf_slpkg = {
|
||||||
"RELEASE": "stable",
|
"RELEASE": STABLE,
|
||||||
"SLACKWARE_VERSION": "off",
|
"SLACKWARE_VERSION": "off",
|
||||||
"COMP_ARCH": "off",
|
"COMP_ARCH": "off",
|
||||||
"REPOSITORIES": ["slack", "sbo", "rlw", "alien",
|
"REPOSITORIES": ["slack", "sbo", "rlw", "alien",
|
||||||
|
|
Loading…
Reference in a new issue