Codebase list debian-goodies / 54ce247
dglob: Add option -A to suppress architecture qualifiers in output Axel Beckert 6 years ago
3 changed file(s) with 9 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1717 * Extend dglob to support and emit architecture qualifiers.
1818 (Closes: #792139, #861187)
1919 * Refactor dglob to use less code duplication.
20 + Add option -A to suppress architecture qualifiers in output.
2021 * Fix exit code of dglob if non-existing package was queried with "-a".
2122
2223 [ Stefan Fritsch ]
1919 # 02111-1307, USA.
2020 #
2121
22 ARGS=$(getopt -o af0reinXv -n dglob -- "$@")
22 ARGS=$(getopt -o af0reinXvA -n dglob -- "$@")
2323 eval set -- "$ARGS"
2424
2525
4040 -a) filter="cat" ; all="yes" ; shift ;;
4141 -0) SEP=0 ; shift ;;
4242 -r|-e|-i|-X|-v) grep_dctrl_options="$grep_dctrl_options $1"; shift ;;
43 -A) expand="awk -F: '{print \$1}'"; shift ;;
4344 -f) expand="xargs dpkg --listfiles | perl -nl${SEP}e 'print if -f'"
4445 if [ "$all" = "yes" ] ; then
4546 if [ -n "$(which apt-file)" ] ; then
3939 Search through all available packages, not just installed ones.
4040 If set, L<grep-aptavail(1)> is used.
4141
42 =item B<-A>
43
44 Do not emit architecture qualifiers on result.
45
4246 =item B<-n>
4347
4448 Search through all the available packages but not including installed ones.
7680
7781 =back
7882
79 =head1 AUTHOR
83 =head1 AUTHORS
8084
8185 Matt Zimmerman <mdz@debian.org>
86 Axel Beckert <abe@debian.org>
8287
8388 This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>,
8489 and further enhanced by Javier Fernandez-Sanguino <jfs@debian.org>.