On Sun, Jun 08, 2008 at 01:26:57PM -0400, Joey Hess wrote: > Bill Allombert wrote: > > Hello Joey, > > > > Can you have a look at bug #484167 about triggers and menu ? > > It seems dpkg is running the menu trigger before the the triggering > > package is configured. > > Right, dpkg can run the trigger at any time it choses after unpacking > the package, and currently it seems to do so before configuration, > though I'm not sure why that choice was made. > > I hadn't considered that this could break some executable menu files > that depend on their package being configured when I made menu use > triggers.
What do you suggest ? Would checking for the config file existence be enough ? > However, thinking about it some more, packages like cdd-common were > already broken before menu became triggerized. The breakage > just wasn't as likely to show up, but could occur: > > dpkg --unpack a-game.deb cdd-common.deb > dpkg --configure --pending > > IIRC dpkg --configure --pending configures in alphabetical order. So > a-game would be confgured first, when cdd-common was unpacked but not > yet configured. If a-game uses menu, then update-menus runs, running > cdd-common's menu program, which would fail the same as it does with > triggers. I am not saying the old system is fullproof, but update-menus was never run before the dpkg lock was released which only happened after 'dpkg --configure --pending' returned, at which point both a-game and cdd-common would be configured. Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]