74 |
|
{ |
75 |
|
if ( $self->{selected}{$tool} eq "SELECTED" ) |
76 |
|
{ |
77 |
+ |
$self->verbose(">> Adding tool $tool to list of selected tools"); |
78 |
|
push @toollist, $tool; |
79 |
|
} |
80 |
+ |
$self->verbose(">> Tool $tool was deselected"); |
81 |
|
} |
82 |
|
return @toollist; |
83 |
|
} |
237 |
|
sub Restrict_end { |
238 |
|
my $self=shift; |
239 |
|
my $name=shift; |
240 |
< |
|
240 |
> |
|
241 |
|
if ( $self->{Arch} ) { |
242 |
|
if ( $#{$self->{restrictstack}} >= 0 ) { |
243 |
|
$self->_autoselect(pop @{$self->{restrictstack}}); |
256 |
|
$self->{switch}->checktag( $name, $hashref, 'version'); |
257 |
|
$self->{switch}->checktag( $name, $hashref, 'name'); |
258 |
|
$self->{switch}->checktag( $name, $hashref, 'url'); |
259 |
< |
|
259 |
> |
|
260 |
|
if ( $self->{reqcontext} == 1 ) { |
261 |
|
$self->{switch}->parseerror( |
262 |
< |
"Open new $name conext without previous </$name>"); |
262 |
> |
"Open new $name context without previous </$name>"); |
263 |
|
} |
264 |
|
$self->{reqcontext}=1; |
265 |
|
$$hashref{'name'}=~tr[A-Z][a-z]; |
269 |
|
my $urlobj=$self->{switch}->expandurl($$hashref{'url'}); |
270 |
|
$self->{url}{$$hashref{'name'}}=$urlobj->url(); |
271 |
|
|
272 |
+ |
|
273 |
+ |
# Disable the auto select mechanism. Now, we start with |
274 |
+ |
# all tools having a flag "UNSELECTED". Then we choose |
275 |
+ |
# which we wish to select: |
276 |
+ |
if ( $self->{Arch} ) |
277 |
+ |
{ |
278 |
+ |
$self->{selected}{$$hashref{'name'}}="UNSELECTED"; |
279 |
+ |
} |
280 |
+ |
|
281 |
|
# -- selection |
282 |
< |
if ( $self->{Arch} ) { |
283 |
< |
if ( $self->_autoselect() ) { |
284 |
< |
$self->{selected}{$$hashref{'name'}}=1; |
285 |
< |
} |
286 |
< |
else { |
287 |
< |
$self->{selected}{$$hashref{'name'}}=0; |
288 |
< |
} |
289 |
< |
} |
282 |
> |
# if ( $self->{Arch} ) { |
283 |
> |
# if ( $self->_autoselect() ) { |
284 |
> |
# $self->{selected}{$$hashref{'name'}}="UNSELECTED"; |
285 |
> |
# } |
286 |
> |
# else { |
287 |
> |
# $self->{selected}{$$hashref{'name'}}="DESELECTED"; |
288 |
> |
# } |
289 |
> |
# } |
290 |
> |
|
291 |
> |
# Output the tool name here with the value |
292 |
> |
# of its' select flag: |
293 |
> |
$self->verbose(">> Tool name: ".$$hashref{'name'}." sel/desel flag value: ". |
294 |
> |
$self->{selected}{$$hashref{'name'}} ." "); |
295 |
> |
|
296 |
|
$self->{creqtool}=$$hashref{'name'}; |
297 |
|
$self->{creqversion}=$$hashref{'version'}; |
298 |
|
$self->{reqtext}{$self->{creqtool}}{$self->{creqversion}}=""; |