aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-04 01:35:04 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-04 01:35:04 +0100
commitaf1f5829a2b8181fc005acdafaa4cc52e5ae320b (patch)
tree9b2df165bd1f1d9183fb2be3da3273c8f43f2d06 /SBO-Lib/lib/SBO
parentea914a834932b7f94379e5247d2788b4b1e47ceb (diff)
downloadsbotools2-af1f5829a2b8181fc005acdafaa4cc52e5ae320b.tar.xz
Allow to override the version of slackware to grab from SBo
Diffstat (limited to 'SBO-Lib/lib/SBO')
-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',