Skip to content

Commit

Permalink
osinfo-db: simplify install
Browse files Browse the repository at this point in the history
This allows us to avoid unpacking the source tarball unnecessarily.
  • Loading branch information
carlocab committed May 11, 2024
1 parent 70912b0 commit 4c5178c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/o/osinfo-db.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class OsinfoDb < Formula
desc "Osinfo database of operating systems for virtualization provisioning tools"
homepage "https://libosinfo.org/"
url "https://releases.pagure.org/libosinfo/osinfo-db-20240510.tar.xz"
url "https://releases.pagure.org/libosinfo/osinfo-db-20240510.tar.xz", using: :nounzip
sha256 "08a2d521c485687f6be39940d5b3f61bc0f583bb7e3655a131c658385eb7e5ca"
license "GPL-2.0-or-later"

Expand All @@ -23,7 +23,7 @@ class OsinfoDb < Formula
depends_on "osinfo-db-tools" => [:build, :test]

def install
system "osinfo-db-import", "--dir=#{share}/osinfo", cached_download
system "osinfo-db-import", "--dir=#{share}/osinfo", "osinfo-db-#{version}.tar.xz"
end

test do
Expand Down

0 comments on commit 4c5178c

Please sign in to comment.