FS#31094 - [pacman-contrib] 4.0.3-1: Running pacsysclean with no options gives an error
Attached to Project:
Pacman
Opened by Nick Smallbone (nick8325) - Friday, 10 August 2012, 11:38 GMT
Last edited by Allan McRae (Allan) - Sunday, 31 March 2013, 07:09 GMT
Opened by Nick Smallbone (nick8325) - Friday, 10 August 2012, 11:38 GMT
Last edited by Allan McRae (Allan) - Sunday, 31 March 2013, 07:09 GMT
|
Details
I have pacman-contrib 4.0.3-1 installed. When I run
pacsysclean, I get an error from pacman:
error: package '-' was not found The culprit is line 30 of the script: [[ $PACMAN_OPTS != -* ]] && PACMAN_OPTS="-$PACMAN_OPTS" which, if PACMAN_OPTS is empty, sets it to -. I changed the line to [[ $PACMAN_OPTS != -* ]] && [[ ! -z $PACMAN_OPTS ]] && PACMAN_OPTS="-$PACMAN_OPTS" and then it works. |
This task depends upon
Closed by Allan McRae (Allan)
Sunday, 31 March 2013, 07:09 GMT
Reason for closing: Fixed
Additional comments about closing: git commit c409052d
Sunday, 31 March 2013, 07:09 GMT
Reason for closing: Fixed
Additional comments about closing: git commit c409052d
http://projects.archlinux.org/pacman.git/commit/?id=233e5f610c409052d