aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index 40e976c..2a7a338 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -144,6 +144,7 @@ our %config = (
PKG_DIR => 'FALSE',
SBO_HOME => 'FALSE',
LOCAL_OVERRIDES => 'FALSE',
+ SLACKWARE_VERSION => 'FALSE',
);
# subroutine to suck in config in order to facilitate unit testing
@@ -184,6 +185,7 @@ sub show_version {
# which is now not needed since this version drops support < 14.0
# but it's already future-proofed, so leave it.
sub get_slack_version {
+ return $config{SLACKWARE_VERSION} unless $config{SLACKWARE_VERSION} eq 'FALSE';
my %supported = (
'14.0' => '14.0',
'14.1' => '14.1',