[pacman-dev] [PATCH] pacman: list all unknown targets on removal operation

Dan McGee dpmcgee at gmail.com
Mon Dec 12 11:23:04 EST 2011


On Sat, Dec 10, 2011 at 5:12 AM, Allan McRae <allan at archlinux.org> wrote:
> On 10/12/11 20:10, Allan McRae wrote:
>> On a removal operation, pacman currently reports an error for the
>> package that is not found in the database and then exists.  Adjust
>> so that all unknown packages are reported.
>>
>> Before:
>>> pacman -R foo bar
>> error: 'foo': target not found
>>
>> After:
>>> pacman -R foo bar
>> error: 'foo': target not found
>> error: 'bar': target not found
>>
>> Signed-off-by: Allan McRae <allan at archlinux.org>
>> ---
>
>
> BTW, I would like something similar for -S operations too:
>
> # pacman -S foo bar
> error: target not found: foo
>
> However, I can not see how to do that (without passing some value around
> to lots of functions) while avoiding the potential group selection
> dialog if we did something like:
>
> # pacman -S foo base bar
>
> Any pointers would be appreciated.

-U would be nice too; might be similar to your -S case mentioned above.

$ sudo ./src/pacman/pacman -U foo bar baz
Password:
loading packages...
error: 'foo': could not find or read package

I'll take a quick look at this to see what I can come up with.

-Dan


More information about the pacman-dev mailing list