[PATCH] Fix for irritating lunar update bug

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


On 03/04/2012 08:53 AM, Zbigniew Luszpinski wrote:
> Hello,
>
> this is another one I have done to make Lunar less irritating.
> It also fixes bad dependencies but this time in lunar update:
>
> If lunar update finds that a module was removed from moonbase it asks you
> to remove it. When this patch is applied and you say yes to remove a
> module removed already from moonbase also its entries will be removed from
> depends cache. So lunar lin/update will not make build errors anymore
> because of non existing modules sticking in dependencies cache.


 >        if query "Do you want to remove > 
${MODULE_COLOR}$MODULE${DEFAULT_COLOR}${QUERY_COLOR} ?" y ; then
 >          lrm $MODULE
 > +        sed -i "/$MODULE:/d" ${DEPENDS_STATUS}*


This needs to be properly locked, and not use a wildcard

other than that, the idea is fine. care to resend with locking?

Auke


More information about the Lunar-dev mailing list