Changeset 18784 for trunk/base


Ignore:
Timestamp:
Jul 28, 2006, 6:15:32 PM (14 years ago)
Author:
jberry
Message:

Conversion to distinct functions for actions broke recognition of -f for selfupdate.
This change restores selfupdate's ability to recognize the -f flag, and also fixes
a similar bug for uninstall -u.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port/port.tcl

    r18084 r18784  
    33exec @TCLSH@ "$0" "$@"
    44# port.tcl
    5 # $Id: port.tcl,v 1.160 2006/05/24 00:42:56 pguyot Exp $
     5# $Id: port.tcl,v 1.161 2006/07/28 18:15:32 jberry Exp $
    66#
    77# Copyright (c) 2002-2006 DarwinPorts organization
     
    13841384
    13851385proc action_selfupdate { action portlist opts } {
     1386        global global_options;
    13861387        if { [catch {darwinports::selfupdate [array get global_options]} result ] } {
    13871388                global errorInfo
     
    14711472proc action_uninstall { action portlist opts } {
    14721473        set status 0
    1473         if {[info exists global_options(port_uninstall_old)]} {
     1474        if {[global_option_isset port_uninstall_old]} {
    14741475                # if -u then uninstall all inactive ports
    14751476                # (union these to any other ports user has in the port list)
Note: See TracChangeset for help on using the changeset viewer.