Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet/provider/package/pacman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def install_from_file
else
fail _("Source %{source} is not supported by pacman") % { source: source }
end
pacman "--noconfirm", "--noprogressbar", "--update", source
pacman "--noconfirm", "--noprogressbar", "--upgrade", source
end

def install_from_repo
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/provider/package/pacman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
resource[:source] = source

expect(executor).to receive(:execute).
with(include("--update") & include(source), no_extra_options).
with(include("--upgrade") & include(source), no_extra_options).
ordered.
and_return("")

Expand All @@ -116,7 +116,7 @@

it "should install from the path segment of the URL" do
expect(executor).to receive(:execute).
with(include("--update") & include(actual_file_path), no_extra_options).
with(include("--upgrade") & include(actual_file_path), no_extra_options).
ordered.
and_return("")

Expand Down