FS#47599 - wrong pacman return code on sync failure

Attached to Project: Pacman
Opened by Radek Podgorny (rpodgorny) - Saturday, 02 January 2016, 20:23 GMT
Last edited by Allan McRae (Allan) - Wednesday, 02 March 2016, 04:09 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.0
Due in Version 5.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

radek@berta ~> sudo pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.archlinuxarm.org : Resolving timed out after 10523 milliseconds
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirror.archlinuxarm.org : Resolving timed out after 10523 milliseconds
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mirror.archlinuxarm.org : Resolving timed out after 10522 milliseconds
error: failed to update community (download library error)
error: failed retrieving file 'alarm.db' from mirror.archlinuxarm.org : Resolving timed out after 10523 milliseconds
error: failed to update alarm (download library error)
error: failed retrieving file 'aur.db' from mirror.archlinuxarm.org : Resolving timed out after 10522 milliseconds
error: failed to update aur (download library error)
rpodgorny is up to date
radek@berta ~> echo $status
0

...i suspect this should return a nonzero code. (the $status thing is fish equivalent of $? in bash)
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 02 March 2016, 04:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit af5d69d5
Comment by Allan McRae (Allan) - Sunday, 21 February 2016, 08:35 GMT Comment by Radek Podgorny (rpodgorny) - Friday, 02 December 2016, 13:51 GMT
has the new pacman been released already? it seems the latest (stable) one still fails...
Comment by Allan McRae (Allan) - Friday, 02 December 2016, 21:58 GMT
See above:
Due in Version 5.1.0
Comment by Radek Podgorny (rpodgorny) - Saturday, 03 December 2016, 10:59 GMT
ah, sorry, didn't see that... ...it would be nice to make a new release, then (it's going to be almost a year since 5.0)... ;-)

Loading...