okay I think I finally figured out what is happening.

        sub _process_trees_arg {
                my $self = shift;
                return if get_option('_magic_trees'); # Already done this

after the first loop _magic_trees is set, so trees never get processed again.

now I just need to figure out how to unset it, I’m having no luck using options 
in my tests.  Fink::Config->get_option('_magic_trees’); just returns 
_magic_trees, not the actual option value.  And using set_options just produces 
warnings, though I double that would help anyhow since i need to undef it.  
Maybe we need a clear_option ?

Anyone have any ideas so I can fix the pdb?
---
TS
http://www.southofheaven.org/
Life begins and ends with chaos, live between the chaos!

> On Feb 23, 2016, at 7:43 PM, TheSin <the...@southofheaven.org> wrote:
> 
> so after many more hours of trying to figure this issue out.  this is what I 
> know
> 
> get_treelist calls _process_trees_arg which is what sets _trees and returns 
> it.
> 
> if I call $config->get_treelist() it’s only right the first time, I can never 
> reset it.
> if I call $config->_standard_treelist() it’s always right, it changes with 
> the config params
> if I call $config->custom_treelist() it’s always right, it’s tells me if 
> $config->get_treelist() differs $config->_standard_treelist(), basically.
> 
> so the question is why does _process_trees_arg fail?  Am I calling things 
> wrong?
> ---
> TS
> http://www.southofheaven.org/
> Life begins and ends with chaos, live between the chaos!
> 
>> On Feb 23, 2016, at 2:54 PM, TheSin <the...@southofheaven.org> wrote:
>> 
>> I’m currently working on the pdf files and noticed something odd, the PDB 
>> basically runs in a loop for all dist/arch/tree variants, to do this it 
>> makes a virtual config which is loaded in memory.  So it doesn’t use files, 
>> which is good, but it seems that Fink::Config->get_treelist() so not respect 
>> this, once the param for trees is set it doesn’t forget it even with an 
>> undef $Fink:Config::config.  Here is an example that I built with the 
>> relevant bits to show what happens.  The reason this is an issue, so 
>> require_packages() will use get_treelist to populate the $packages var, so 
>> that I can we out duplicate versions before adding them to solr.
>> 
>> Anyhow could some help me figure this out, or fix this issue preventing this?
>> 
>> <test.pl>
>> ---
>> TS
>> http://www.southofheaven.org/
>> Life begins and ends with chaos, live between the chaos!
>> 
> 


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
fink-core mailing list
fink-core@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.core
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-core

Reply via email to