Skip to content
Permalink
Browse files

Bug:

Submitted by:
Reviewed by:
Approved by:    jmpp@
Obtained from:
Removal of -a
- removed from port.tcl
- removed from port(1)

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@15665 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Ole Guldberg Jensen
Ole Guldberg Jensen committed Jan 1, 2006
1 parent 3eff065 commit 57d788ddf3b33bad05cc7ee88e1808b37fe5f9af
Showing with 10 additions and 18 deletions.
  1. +5 −6 src/port/port.1
  2. +5 −12 src/port/port.tcl
@@ -36,7 +36,7 @@
.Ar ports
.Sh SYNOPSIS
.Nm
.Op Fl vdqfonausbckt
.Op Fl vdqfonusbckt
.Op Fl D Ar portdir
.Ar action
.Op Ar actionflags
@@ -200,8 +200,6 @@ debug mode (generate debugging messages, implies
quiet mode (suppress messages)
.It Fl n
dont follow dependencies in upgrade (only for upgrading)
.It Fl a
upgrade all installed ports (only for upgrading)
.It Fl u
uninstall non-active ports when upgrading and uninstalling
.It Fl f
@@ -280,12 +278,13 @@ List the installed ports that need upgrading.
.Ss upgrade
Upgrade the installed
.Ar portname .
To upgrade all ports, use
.Fl a .
For example:
.Pp
.Dl "port upgrade vim"
.Dl "port -a upgrade"
.Pp
To upgrade all installed ports:
.Pp
.Dl "port upgrade installed"
.Pp
To upgrade
.Ar portname
@@ -2,7 +2,7 @@
#\
exec @TCLSH@ "$0" "$@"
# port.tcl
# $Id: port.tcl,v 1.144 2005/12/29 02:34:36 olegb Exp $
# $Id: port.tcl,v 1.145 2006/01/01 15:24:48 olegb Exp $
#
# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
# Copyright (c) 2002 Apple Computer, Inc.
@@ -138,7 +138,7 @@ proc ui_channels {priority} {
# Standard procedures
proc print_usage args {
global cmdname
set usage { [-vdqfonasbcktu] [-D portdir] action [actionflags]
set usage { [-vdqfonsbcktu] [-D portdir] action [actionflags]
[[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]...
}

@@ -150,7 +150,7 @@ proc print_usage args {
proc print_help args {
global cmdname

set help { [-vdqfonasbcktu] [-D portdir] action [actionflags]
set help { [-vdqfonsbcktu] [-D portdir] action [actionflags]
[[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]...

Valid actions are:
@@ -1117,7 +1117,6 @@ while {[moreargs]} {
f { set global_options(ports_force) yes }
o { set global_options(ports_ignore_older) yes }
n { set global_options(ports_nodeps) yes }
a { set global_options(port_upgrade_all) yes }
u { set global_options(port_uninstall_old) yes }
s { set global_options(ports_source_only) yes }
b { set global_options(ports_binary_only) yes }
@@ -1350,14 +1349,8 @@ switch -- $action {
}

upgrade {
if {[info exists global_options(port_upgrade_all)] } {
# if -a then upgrade all installed ports
# (union these to any other ports user has in the port list)
set portlist [opUnion $portlist [get_installed_ports]]
} else {
# Otherwise if the user has supplied no ports we'll use the current port
require_portlist
}
# Otherwise if the user has supplied no ports we'll use the current port
require_portlist

foreachport $portlist {
# Merge global variations into the variations specified for this port

0 comments on commit 57d788d

Please sign in to comment.
You can’t perform that action at this time.