Skip to content

Commit

Permalink
ubuntu: follow SystemRepository change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 12, 2025
1 parent 91e8e60 commit c54e73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubygems-requirements-system/platform/ubuntu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def target?(platform)

private
def prepare_command_lines(package)
if package.start_with?("ppa:")
if package.is_a?(String) and package.start_with?("ppa:")
[
["apt-get", "update"],
install_command_line("software-properties-common"),
Expand All @@ -49,7 +49,7 @@ def prepare_command_lines(package)
end
end

def install_command_line(package)
def install_command_line_package(package)
if package.start_with?("ppa:")
[
"add-apt-repository",
Expand Down

0 comments on commit c54e73f

Please sign in to comment.