Skip to content

Commit

Permalink
cmd/portable-package: remove bottle hardlinking
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Nov 24, 2023
1 parent e754b11 commit 7ab2209
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions cmd/portable-package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
require "cli/parser"

module Homebrew
include FileUtils

module_function

def portable_package_args
def self.portable_package_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`portable-package` <formulae>
Expand All @@ -22,7 +18,7 @@ def portable_package_args
end
end

def portable_package
def self.portable_package
args = portable_package_args.parse

ENV["HOMEBREW_DEVELOPER"] = "1"
Expand Down Expand Up @@ -70,19 +66,9 @@ def portable_package
--no-rebuild
]
safe_system HOMEBREW_BREW_FILE, "bottle", *verbose, *bottle_args, name
Pathname.glob("*.bottle*.tar.gz") do |bottle_filename|
bottle_file = bottle_filename.realpath
bottle_cache = HOMEBREW_CACHE/bottle_filename
ln bottle_file, bottle_cache, force: true
end
rescue => e
ofail e
end
end

Pathname.glob("*.bottle*.tar.gz") do |bottle_filename|
bottle_cache = HOMEBREW_CACHE/bottle_filename
rm_f bottle_cache
end
end
end

0 comments on commit 7ab2209

Please sign in to comment.