Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version 4.0.3
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Dave Reisner (falconindy) - Friday, 10 August 2012, 23:33 GMT
I already fixed this in git, its just unreleased:

http://projects.archlinux.org/pacman.git/commit/?id=233e5f610c409052d

Loading...