diff options
author | Klaus Frank <agowa338@users.noreply.github.com> | 2020-02-01 14:37:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 14:37:27 +0100 |
commit | 14b1febf64f03d5d1b7b02acb7749055accd12fc (patch) | |
tree | df57d6a8ee92e54da4dee51373d5d578530af71c /changelogs/fragments/65750-pacman.yml | |
parent | 3baea92ec94c55b04d2986096ddf49440d60eca3 (diff) | |
download | ansible-14b1febf64f03d5d1b7b02acb7749055accd12fc.tar.gz |
Fix pacman: "IndexError: list index out of range" #63077 (#65750)
* Fix #63077
If the package is already installed the stdout is not as expected by this function. Either remove `--needed` or just noop if we detect pacman returning. We cannot match the stdout string, as that is most likely localized.
```
[root@archBook user]# /usr/bin/pacman --upgrade --noconfirm --noprogressbar --needed /srv/aur/src/i3cat-git/i3cat-git-r38.c6d29dd-1-x86_64.pkg.tar.xz
loading packages...
warning: i3cat-git-r38.c6d29dd-1 is up to date -- skipping
there is nothing to do
```
* Add comment
Add comment
* Add changelog fragment.
Co-authored-by: Felix Fontein <felix@fontein.de>
Diffstat (limited to 'changelogs/fragments/65750-pacman.yml')
-rw-r--r-- | changelogs/fragments/65750-pacman.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/65750-pacman.yml b/changelogs/fragments/65750-pacman.yml new file mode 100644 index 0000000000..40995dde38 --- /dev/null +++ b/changelogs/fragments/65750-pacman.yml @@ -0,0 +1,2 @@ +bugfixes: +- "pacman - fix module crash with ``IndexError: list index out of range`` (https://github.com/ansible/ansible/issues/63077)" |