Ignore:
Timestamp:
May 22, 2004, 9:31:48 PM (16 years ago)
Author:
jkh
Message:

Add another (optional) argument to dportopen so that we can defeat the cache in cases where we need to open an existing instance
but set different options for it.
Reviewed by: kvv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/darwinports1.0/darwinports.tcl

    r7142 r7156  
    287287# DarwinPorts Portfile.
    288288
    289 proc dportopen {porturl {options ""} {variations ""}} {
     289proc dportopen {porturl {options ""} {variations ""} {nocache ""}} {
    290290    global darwinports::portinterp_options darwinports::portdbpath darwinports::portconf darwinports::open_dports auto_path
    291291
     
    293293        # XXX: should compare options and variations here too.
    294294        # if found, return the existing reference and bump the refcount.
    295         set dport [dlist_search $darwinports::open_dports porturl $porturl]
     295        if {$nocache != ""} {
     296                set dport {}
     297        } else {
     298                set dport [dlist_search $darwinports::open_dports porturl $porturl]
     299        }
    296300        if {$dport != {}} {
    297301                set refcnt [ditem_key $dport refcnt]
Note: See TracChangeset for help on using the changeset viewer.