RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/darwinports1.0/darwinports.tcl,v
retrieving revision 1.161
diff -u -r1.161 darwinports.tcl
|
|
|
926 | 926 | |
927 | 927 | foreach depspec $depends { |
928 | 928 | # grab the portname portion of the depspec |
929 | | set portname [lindex [split $depspec :] 2] |
| 929 | set portname [lindex [split $depspec :] end] |
930 | 930 | |
931 | 931 | # Find the porturl |
932 | 932 | if {[catch {set res [dportsearch "^$portname\$"]} error]} { |
RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port1.0/portdepends.tcl,v
retrieving revision 1.39
diff -u -r1.39 portdepends.tcl
|
|
|
44 | 44 | proc validate_depends_options {option action args} { |
45 | 45 | global targets |
46 | 46 | switch -regex $action { |
47 | | set|append|delete { |
48 | | foreach depspec $args { |
49 | | if {[regexp {([A-Za-z\./0-9]+):([A-Za-z0-9_/\-\.$^\?\+\(\)\|\\]*):([-A-Za-z\./0-9_]+)} "$depspec" match deppath depregex portname]} { |
50 | | switch -regex $deppath { |
51 | | lib|bin|path { |
52 | | if {[string length $depregex] == 0} { |
53 | | return -code error [format [msgcat::mc "invalid depspec: %s (missing regex component)"] $depspec] |
| 47 | set|append|delete { |
| 48 | foreach depspec $args { |
| 49 | switch -regex $depspec { |
| 50 | (lib|bin|path):([-A-Za-z0-9_/.$^?+()|\\\\]+):([-A-Za-z./0-9_]+) {} |
| 51 | (port):?:([-A-Za-z./0-9_]+) {} |
| 52 | default { return -code error [format [msgcat::mc "invalid depspec: %s"] $depspec] } |
54 | 53 | } |
55 | 54 | } |
56 | | port {} |
57 | | default {return -code error [format [msgcat::mc "unknown depspec type: %s"] $deppath]} |
58 | | } |
59 | | } else { |
60 | | return -code error [format [msgcat::mc "invalid depspec: %s"] $depspec] |
61 | 55 | } |
62 | | } |
63 | | } |
64 | 56 | } |
65 | 57 | } |