5 |
|
# get(url,[location]) : download from the specified url to cache or location |
6 |
|
# return the full url path name incl. any base expansion |
7 |
|
# and the filename downloaded to |
8 |
< |
# setbase(urlstring) : set a base url type |
8 |
> |
# setbase(urlstring) : set a base url type - return the url object |
9 |
|
# unsetbase(type) : deactivate a previously set base |
10 |
|
# currentbase(type) : return the current base for the given type |
11 |
|
# |
101 |
|
$self->checktype($type); |
102 |
|
# make a new base-url object |
103 |
|
push @{$self->{"basestack"}{$type}}, $base; |
104 |
+ |
return $base; |
105 |
|
} |
106 |
|
|
107 |
|
sub unsetbase { |