Skip to content

Commit

Permalink
Fix url path for libarchive 3.5.1
Browse files Browse the repository at this point in the history
I think they mistagged, but it may be the new format going forward

Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Jan 15, 2021
1 parent ed38479 commit 023e6bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/software/libarchive.rb
@@ -1,5 +1,5 @@
#
# Copyright 2014-2020 Chef Software, Inc.
# Copyright 2014-2021 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,7 +31,12 @@
version("3.4.1") { source sha256: "fcf87f3ad8db2e4f74f32526dee62dd1fb9894782b0a503a89c9d7a70a235191" }
version("3.4.0") { source sha256: "8643d50ed40c759f5412a3af4e353cffbce4fdf3b5cf321cb72cacf06b2d825e" }

source url: "https://github.com/libarchive/libarchive/releases/download/v#{version}/libarchive-#{version}.tar.gz"
# 3.5.1 no longer includes the "v" in the path
if version.satisfies?(">= 3.5.1")
source url: "https://github.com/libarchive/libarchive/releases/download/#{version}/libarchive-#{version}.tar.gz"
else
source url: "https://github.com/libarchive/libarchive/releases/download/v#{version}/libarchive-#{version}.tar.gz"
end

relative_path "libarchive-#{version}"

Expand Down

0 comments on commit 023e6bf

Please sign in to comment.