[SM-Discuss] tablet and broken POST_REMOVE

Arwed von Merkatz v.merkatz at gmx.net
Wed Mar 23 04:51:35 EST 2005


Hi,

there's a problem with the tablet if the PRE_REMOVE/POST_REMOVE spell
files put there are broken in some way, e.g. like the gnumeric
POST_REMOVE was broken:
Preparing to install gnumeric2
/var/state/sorcery/tablet/gnumeric2/20050308195706/spell/POST_REMOVE:
line 1: update_desktop_database: command not found
 ! Problem Detected ! 

root at Otherland:~# dispel gnumeric2
/var/state/sorcery/tablet/gnumeric2/20050308195706/spell/POST_REMOVE:
line 1: update_desktop_database: command not found

Dufflebunk told me on IRC that we can use PRE_PRE_REMOVE to fix those
files, so how would I find the tablet dir to fix it (no function for
that in libapi)?

Another question is, do we really want dispel to fail if POST_REMOVE
failed? When POST_REMOVE gets run the spell _is_ already dispelled, so
now I don't have gnumeric2 installed anymore but sorcery still thinks it
is installed.
In my opinion dispel should only fail if PRE_REMOVE or the dispel itself
fails and just issue a warning if POST_REMOVE fails. Thought on that?

-- 
Arwed v. Merkatz                              Source Mage GNU/Linux developer
                                                    http://www.sourcemage.org



More information about the SM-Discuss mailing list