Changeset 1076 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
Jul 26, 2010, 1:18:49 AM (14 years ago)
Author:
Bruno Cornec
Message:

r3960@localhost: bruno | 2010-07-22 22:11:48 +0200

  • Fix a bug on pb_get_uri revealed by introduction of first successful set of tests ;-) (TBC)
  • Add support for mandriva 2010.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1063 r1076  
    7171  # Analysis a URI and return its components in a table
    7272  #
    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");
    7474
    7575  #
     
    196196$account = "" if (not defined $account);
    197197$host = "" if (not defined $host);
    198 $port = "" if (not defined $port);
     198if (not defined $port) {
     199    $port = ""
     200} else {
     201    # Remove extra : at start
     202    $port =~ s/^://;
     203}
    199204
    200205pb_log(2,"DEBUG: scheme:$scheme ac:$account host:$host port:$port path:$path\n");
Note: See TracChangeset for help on using the changeset viewer.