FS#60744 - [pacman] pacman -Qu return code = 1 if all packages upgraded.

Attached to Project: Pacman
Opened by Andrey Kitsul (a.kitsul) - Thursday, 08 November 2018, 11:25 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 08 November 2018, 13:29 GMT
Task Type Support Request
Category Packages: Core
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

pacman -Qu return code = 1 if all packages upgraded.

Additional info:
* pacman 5.1.1-1
* libalpm v11.0.1

Steps to reproduce:
1. before upgrade run, e.g.:
```
/usr/bin/pacman -Qu
feh 2.28-1 -> 2.28.1-1
echo $?
0
```
2. upgrade all package: `/usr/bin/pacman -Syu`
3. after upgrade run:
```
/usr/bin/pacman -Qu
echo $?
1
```

I prepared small fix. Please review it.
Maybe you have a better solution?
This task depends upon

Loading...