dglob: Add option -A to suppress architecture qualifiers in output
Axel Beckert
6 years ago
17 | 17 |
* Extend dglob to support and emit architecture qualifiers.
|
18 | 18 |
(Closes: #792139, #861187)
|
19 | 19 |
* Refactor dglob to use less code duplication.
|
|
20 |
+ Add option -A to suppress architecture qualifiers in output.
|
20 | 21 |
* Fix exit code of dglob if non-existing package was queried with "-a".
|
21 | 22 |
|
22 | 23 |
[ Stefan Fritsch ]
|
19 | 19 |
# 02111-1307, USA.
|
20 | 20 |
#
|
21 | 21 |
|
22 | |
ARGS=$(getopt -o af0reinXv -n dglob -- "$@")
|
|
22 |
ARGS=$(getopt -o af0reinXvA -n dglob -- "$@")
|
23 | 23 |
eval set -- "$ARGS"
|
24 | 24 |
|
25 | 25 |
|
|
40 | 40 |
-a) filter="cat" ; all="yes" ; shift ;;
|
41 | 41 |
-0) SEP=0 ; shift ;;
|
42 | 42 |
-r|-e|-i|-X|-v) grep_dctrl_options="$grep_dctrl_options $1"; shift ;;
|
|
43 |
-A) expand="awk -F: '{print \$1}'"; shift ;;
|
43 | 44 |
-f) expand="xargs dpkg --listfiles | perl -nl${SEP}e 'print if -f'"
|
44 | 45 |
if [ "$all" = "yes" ] ; then
|
45 | 46 |
if [ -n "$(which apt-file)" ] ; then
|
39 | 39 |
Search through all available packages, not just installed ones.
|
40 | 40 |
If set, L<grep-aptavail(1)> is used.
|
41 | 41 |
|
|
42 |
=item B<-A>
|
|
43 |
|
|
44 |
Do not emit architecture qualifiers on result.
|
|
45 |
|
42 | 46 |
=item B<-n>
|
43 | 47 |
|
44 | 48 |
Search through all the available packages but not including installed ones.
|
|
76 | 80 |
|
77 | 81 |
=back
|
78 | 82 |
|
79 | |
=head1 AUTHOR
|
|
83 |
=head1 AUTHORS
|
80 | 84 |
|
81 | 85 |
Matt Zimmerman <mdz@debian.org>
|
|
86 |
Axel Beckert <abe@debian.org>
|
82 | 87 |
|
83 | 88 |
This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>,
|
84 | 89 |
and further enhanced by Javier Fernandez-Sanguino <jfs@debian.org>.
|