[PATCH] Fix for irritating depends bug

Auke Kok auke at foo-projects.org
Sun Mar 4 20:04:33 CET 2012


On 03/04/2012 08:44 AM, Zbigniew Luszpinski wrote:
> Hello,
>
> I made a patch for a bug I hate the most in Lunar:
> 1.You lin a module and see it lins a optional dependency you do not want
> so you do lin -r module to reconfigure but Lunar still rember old
> dependnecy.
> or
> 2. You lin a module and Lunar tries to lin dependency which is not in
> moonbase anymore so you get build error due to missing dependency.
>
> Lunar tends to cache depends for a module to speed up.
> But if you fine tune depends list or dependency module was removed from
> moonbase Lunar continues to look for this unwanted dependency.
>
> Thanks to this patch you can use lin -r to reset cached deps so Lunar will
> stop looking for unwanted/removed dependency.

the idea of on-the-fly "adjusting" the cache seems wrong, why not just 
throw it away and have it regenerated? that's a much cleaner solution

Auke



More information about the Lunar-dev mailing list