Changeset 1076 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Jul 26, 2010, 1:18:49 AM (15 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1063 r1076 71 71 # Analysis a URI and return its components in a table 72 72 # 73 my ($scheme, $account, $host, $port, $path) = pb_get_uri("svn+ssh://ac@my.server.org /path/to/dir");73 my ($scheme, $account, $host, $port, $path) = pb_get_uri("svn+ssh://ac@my.server.org:port/path/to/dir"); 74 74 75 75 # … … 196 196 $account = "" if (not defined $account); 197 197 $host = "" if (not defined $host); 198 $port = "" if (not defined $port); 198 if (not defined $port) { 199 $port = "" 200 } else { 201 # Remove extra : at start 202 $port =~ s/^://; 203 } 199 204 200 205 pb_log(2,"DEBUG: scheme:$scheme ac:$account host:$host port:$port path:$path\n"); -
devel/pb-modules/t/Base.t
r1075 r1076 5 5 use strict; 6 6 use Test::More; 7 use ProjectBuilder::Base; 7 8 8 9 my $nt = 0; 9 10 10 my $ur l= "svn+ssh://account\@machine.sdom.tld:8080/path/to/file";11 my $uri = "svn+ssh://account\@machine.sdom.tld:8080/path/to/file"; 11 12 my ($scheme, $account, $host, $port, $path) = pb_get_uri($uri); 12 13
Note:
See TracChangeset
for help on using the changeset viewer.