Changeset 2391


Ignore:
Timestamp:
Apr 1, 2003, 8:48:01 PM (17 years ago)
Author:
kevin
Message:

accept port names from the command line
do not allow duplicate entries for dependencies in the Info.plist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/portmgr/mpkgall.tcl

    r2102 r2391  
    111111package require portpackage 1.0
    112112
    113 if {[catch {set res [dportsearch .*]} result]} {
     113# If no arguments were given, default to all ports.
     114if {[llength $argv] == 0} {
     115        lappend argv ".*"
     116}
     117
     118foreach pname $argv {
     119
     120if {[catch {set res [dportsearch "^${pname}\$"]} result]} {
    114121        puts "port search failed: $result"
    115122        exit 1
     
    187194                continue
    188195        } else {
     196                set result [lsort -uniq $result]
    189197                eval "lappend dependencies $result"
    190198        }
     
    212220        #
    213221}
     222
     223}
     224# end foreach pname
Note: See TracChangeset for help on using the changeset viewer.