[PATCH] module upgrade table - no more troubles with legacy modules removed

Zbigniew Luszpinski zbiggy at o2.pl
Sat Aug 20 20:59:39 CEST 2011


Hello,

here is module upgrade patch I made. Please commit it because I have no 
write access to lunar.git.

How Lunar core tools looks now:
when legacy module is removed from moonbase Lunar asks if you want to 
remove it (default: yes) or keep it. This way when you sleep lunar update 
will silently cut some old modules. In my case this was kde3 - I woke up 
and surprise I have no desktop :(.

How Lunar core tools behave after this patch:
Lunar will check modules upgrade table if there is upgrade path. If it is 
present new module will be lined. If you are watching lunar update it will 
ask you if you wnat to upgrade. Default is yes so when firefox5 will be 
removed and lunar is updating when you are sleeping you will wake up next 
day with firefox 6.0 ready for work. If you say no default previous 
behaviour takes action (default remove - if no leave).

Info for module developers:
Module upgrade table is inside moonbase file named: upgrade.tbl in root 
directory of the moonbase. You have access to it via moonbase.git

File format is easy:
removed_module new_module
for example:
firefox4 firefox5

firefox5 and thunderbird5 were removed from moonbase because of end of 
life. If you have them installed and have this patch applied do lunar 
update to test the solution. firefox5 will be upgraded to firefox6 and 
thunderbird5 will be upgraded to thunderbird6.


have a nice day,
Zbigniew Luszpinski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upgrade.patch
Type: text/x-patch
Size: 2073 bytes
Desc: not available
URL: <http://foo-projects.org/pipermail/lunar-dev/attachments/20110820/8bd09ef3/attachment.bin>


More information about the Lunar-dev mailing list