FS#8470 - Quiet flag for search and query output

Attached to Project: Pacman
Opened by Artyom (urandom) - Wednesday, 31 October 2007, 21:14 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 28 November 2007, 00:25 GMT
Task Type Feature Request
Category Output
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Low
Priority Normal
Reported Version 3.0.6
Due in Version 3.1.0
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Sometime very comfortably take look only on package names in -Q -Qs and -Ss. This patch add flag -q for this flags and search/query output provide only package names.
This task depends upon

Closed by  Aaron Griffin (phrakture)
Wednesday, 28 November 2007, 00:25 GMT
Reason for closing:  Implemented
Additional comments about closing:  Patches in git
Comment by Artyom (urandom) - Wednesday, 31 October 2007, 22:03 GMT
And for -Sl
Comment by Artyom (urandom) - Wednesday, 31 October 2007, 22:05 GMT
patch
Comment by Artyom (urandom) - Wednesday, 31 October 2007, 22:06 GMT
Oops, sorry...
Comment by Aaron Griffin (phrakture) - Wednesday, 31 October 2007, 22:10 GMT
Great - would you mind posting some before and after output? I'm at work and can't test the patch just yet.
Comment by Artyom (urandom) - Wednesday, 31 October 2007, 22:25 GMT
Without quiet flag:
[ 07-11-01 1:24 ] [ artem@m16 ] [ /home/artem/build/pkgs/pacman ]
% pacman -Ss samba
extra/gnome-vfs 2.20.0-2
The GNOME Virtual File System
extra/samba 3.0.26a-4
Tools to access a server's filespace and printers via SMB
extra/smb4k 0.8.6-1
A KDE program that browses samba shares.
extra/xsmbrowser 3.4.0-2
xSMBrowser is a Gui over the Samba utilities that allows users to easily browse Microsoft networks.
community/g2sc 0.2-2
Samba gtk2 client
community/nautilus-share 0.7.1-1
Share files through Samba with Nautilus
extra-cd/gnome-vfs 2.20.0-2
The GNOME Virtual File System
extra-cd/samba 3.0.26a-2
Tools to access a server's filespace and printers via SMB
extra-cd/smb4k 0.8.6-1
A KDE program that browses samba shares.
extra-cd/xsmbrowser 3.4.0-2
xSMBrowser is a Gui over the Samba utilities that allows users to easily browse Microsoft networks.
community-cd/g2sc 0.2-2
Samba gtk2 client
community-cd/nautilus-share 0.7.1-1
Share files through Samba with Nautilus
pacman-cached/gnome-vfs 2.20.0-2
The GNOME Virtual File System
pacman-cached/samba 3.0.26a-2
Tools to access a server's filespace and printers via SMB

With quiet flag:
[ 07-11-01 1:24 ] [ artem@m16 ] [ /home/artem/build/pkgs/pacman ]
% pacman -Ssq samba
gnome-vfs
samba
smb4k
xsmbrowser
g2sc
nautilus-share
gnome-vfs
samba
smb4k
xsmbrowser
g2sc
nautilus-share
gnome-vfs
samba
Comment by Artyom (urandom) - Wednesday, 31 October 2007, 22:27 GMT
If use some else, result may be wonderful =)
[ 07-11-01 1:27 ] [ artem@m16 ] [ /home/artem/build/pkgs/pacman ]
% pacman -Ssq samba|sort|uniq
g2sc
gnome-vfs
nautilus-share
samba
smb4k
xsmbrowse
Comment by Roman Kyrylych (Romashka) - Saturday, 03 November 2007, 12:03 GMT
this feature looks nice :)
Comment by Aaron Griffin (phrakture) - Wednesday, 07 November 2007, 07:18 GMT
Added to my working branch:
http://code.phraktured.net/?p=pacman.git;a=commit;h=02db83983cd808c84456aeaf782a770268f3794c

In the future, please send patches against the latest git. This wasn't too complex to convert, so I did it myself.

Latest git tree can be found:
http://projects.archlinux.org/git/?p=pacman.git;a=summary

Loading...