Skip to content

Commit

Permalink
use --needed when installing packages (#30)
Browse files Browse the repository at this point in the history
So we don't reinstall exsting packages.
  • Loading branch information
lazka authored Jun 25, 2020
1 parent ae15cf1 commit d649e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ By default, the installation is not updated; hence package versions are those of

#### install

Installing additional packages after updating the system is supported through option `install`. The package or list of packages are installed through `pacman --noconfirm -S`.
Installing additional packages after updating the system is supported through option `install`. The package or list of packages are installed through `pacman --noconfirm -S --needed`.

```yaml
- uses: msys2/setup-msys2@v1
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function run() {

if (p_install != '' && p_install != 'false') {
core.startGroup('Installing additional packages...');
await pacman(['-S'].concat(p_install.split(' ')), {});
await pacman(['-S', '--needed'].concat(p_install.split(' ')), {});
core.endGroup();
}

Expand Down

0 comments on commit d649e01

Please sign in to comment.