Ignore:
Timestamp:
Jun 7, 2013, 2:52:02 PM (6 years ago)
Author:
cal@…
Message:

active_variants: don't print depspec in user-visible error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/active_variants-1.1.tcl

    r104849 r106768  
    180180        foreach _require_active_variant $_require_active_variants_list {
    181181                set name [lindex $_require_active_variant 0]
     182                set port [_get_dep_port $name]
    182183                set required [lindex $_require_active_variant 1]
    183184                set forbidden [lindex $_require_active_variant 2]
    184185                if {[catch {set result [active_variants $name $required $forbidden]}] != 0} {
    185                         error "$name is required, but not active."
     186                        error "${port} is required, but not active."
    186187                }
    187188                if {!$result} {
     
    198199                                set str_combine " and "
    199200                        }
    200                         error "$name must be installed ${str_required}${str_combine}${str_forbidden}."
     201                        error "${port} must be installed ${str_required}${str_combine}${str_forbidden}."
    201202                }
    202203        }
Note: See TracChangeset for help on using the changeset viewer.