From af1f5829a2b8181fc005acdafaa4cc52e5ae320b Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Fri, 4 Dec 2015 01:35:04 +0100 Subject: Allow to override the version of slackware to grab from SBo --- SBO-Lib/lib/SBO/Lib.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') 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', -- cgit v1.2.3