aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib/Repo.pm
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2019-04-27 12:17:08 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2019-04-27 12:17:15 +0200
commitd4171aca2f5fe94700fb45726f91bd9436f221de (patch)
tree6b8b328d3ac48bcc1018f83c2c8d27fdafe5dc49 /SBO-Lib/lib/SBO/Lib/Repo.pm
parentfec4daa64fe2cef85c40e3ff0c20cd2287cfdcab (diff)
downloadsbotools2-d4171aca2f5fe94700fb45726f91bd9436f221de.tar.xz
SBO::Lib::{Repo,Util}: Change how versions translates to URLs
Closes #73.
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib/Repo.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib/Repo.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/SBO-Lib/lib/SBO/Lib/Repo.pm b/SBO-Lib/lib/SBO/Lib/Repo.pm
index e2c5bae..29d2ba6 100644
--- a/SBO-Lib/lib/SBO/Lib/Repo.pm
+++ b/SBO-Lib/lib/SBO/Lib/Repo.pm
@@ -6,7 +6,7 @@ use warnings;
our $VERSION = '2.5';
-use SBO::Lib::Util qw/ %config prompt usage_error get_slack_version script_error open_fh open_read in _ERR_DOWNLOAD /;
+use SBO::Lib::Util qw/ %config prompt usage_error get_slack_version get_slack_version_url script_error open_fh open_read in _ERR_DOWNLOAD /;
use Cwd;
use File::Copy;
@@ -288,8 +288,7 @@ or whatever you've set in the C<SLACKWARE_VERSION> configuration variable.
sub pull_sbo_tree {
my $url = $config{REPO};
if ($url eq 'FALSE') {
- my $slk_version = get_slack_version();
- $url = "rsync://slackbuilds.org/slackbuilds/$slk_version/";
+ $url = get_slack_version_url();
} else {
unlink($slackbuilds_txt);
}