FS#14833 - The "-T" option is undocumented.
Attached to Project:
Pacman
Opened by Xyne (Xyne) - Tuesday, 26 May 2009, 03:35 GMT
Last edited by Dan McGee (toofishes) - Saturday, 06 June 2009, 16:10 GMT
Opened by Xyne (Xyne) - Tuesday, 26 May 2009, 03:35 GMT
Last edited by Dan McGee (toofishes) - Saturday, 06 June 2009, 16:10 GMT
|
Details
makepkg uses pacman's "hidden" "-T" option to test if a
dependency is installed.
Line 331 in check_deps(): pmout=$(pacman $PACMAN_OPTS -T "$@") This should be included in the pacman man page and the help message. |
This task depends upon
Closed by Dan McGee (toofishes)
Saturday, 06 June 2009, 16:10 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 9af9c0
Saturday, 06 June 2009, 16:10 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 9af9c0
*-T*::
This operation will check each package specified and return a list of
those packages which are not currently installed. This is mostly useful
in scripts when resolving dependencies. This operation accepts no other
options.
*-T, \--deptest*::
Check dependencies. This operation will check each dependency specified
and return a list of those which are not currently satisfied on the
system. This is mostly useful in scripts, for example, makepkg uses this
to check dependencies. This operation accepts no other options. Example
usage: `pacman -T qt "bash>=3.2"`.
Is this OK?
*-T, \--deptest*::
Check dependencies. This operation will check each package specified
and return a list of those which are not currently installed on the
system. This is mostly useful in scripts. For example, makepkg uses this
to check dependencies. This operation accepts no other options. Example
usage: `pacman -T qt "bash>=3.2"`.
I've split the "This is mostly useful..." sentence in two as the single sentence was grammatically incorrect. You could also say "This is mostly useful in scripts such as makepkg which uses it to check dependencies."
No. "pacman -T" interprets targets as dependencies. And we have virtual dependencies (provisions), like sh, that are not packages ("pacman -T sh" works as expected).