Ticket #33064: base-action_active_inactive.diff

File base-action_active_inactive.diff, 2.2 KB (added by anddam (Andrea D'Amore), 13 years ago)
  • src/port/port.tcl

     
    30753075}
    30763076
    30773077
     3078proc action_inactive { action portlist opts } {
     3079    action_echo "$action" "[get_inactive_ports]" "$opts"
     3080
     3081    return 0
     3082}
     3083
     3084
     3085proc action_active { action portlist opts } {
     3086    action_echo "$action" "[get_active_ports]" "$opts"
     3087
     3088    return 0
     3089}
     3090
     3091
    30783092proc action_outdated { action portlist opts } {
    30793093    global private_options
    30803094    set status 0
     
    40274041    uninstall   [list action_uninstall      [ACTION_ARGS_PORTS]] \
    40284042    \
    40294043    installed   [list action_installed      [ACTION_ARGS_PORTS]] \
     4044    inactive    [list action_inactive       [ACTION_ARGS_NONE]] \
     4045    active      [list action_active         [ACTION_ARGS_NONE]] \
    40304046    outdated    [list action_outdated       [ACTION_ARGS_PORTS]] \
    40314047    contents    [list action_contents       [ACTION_ARGS_PORTS]] \
    40324048    space       [list action_space          [ACTION_ARGS_PORTS]] \
  • src/port/port-help.tcl

     
    1313--no-exec   Do not execute any stored pre- or post-activate procedures
    1414}
    1515
     16set porthelp(active) {
     17List name and version of active ports
     18}
     19
    1620set porthelp(archive) {
    1721Archive the given ports, i.e. install the port image but do not activate
    1822}
     
    188192List installed versions of the given port, or all installed ports if no port is given
    189193}
    190194
     195set porthelp(inactive) {
     196List name and version of inactive ports
     197}
     198
    191199set porthelp(lint) {
    192200Checks if the Portfile is lint-free for each of the given ports
    193201}
  • doc/port.1

     
    427427If no
    428428.Ar portname
    429429is given, all installed ports are shown.
     430.Ss active
     431Show name and versions for all active ports.
     432.Ss inactive
     433Show name and versions for all inactive ports.
    430434.Ss location
    431435Print the install location of a given port.
    432436.Ss contents