On Mon, Jan 17, 2005 at 11:18:06PM +0200, Lars Wirzenius wrote:
> tags 289702 patch
> thanks
> 
> Attached is a patch that adds a wrapper around update-menus so that it
> is always executable. The wrapper checks for the existence
> for /etc/menu/unconfigured, preinst creates it, postinst removes it and
> runs update-menus. This should fix the bug, I think. 

I have a similar fix in my repository: I don't use a state file but the
/usr/bin/update-menus.real x permission bit.

>                                                      Also, eventually it
> should be possible to get rid of all the testing of whether update-menus
> is executable in postinsts of other packages.

I don't think it make any sense. We will still have to check if the 
file /usr/bin/update-menus exists before executing it so doing test -e
instead of test -x does not give you anything.

> I have tested the patch by installing woody on a scratch machine (fairly
> minimal installation, though), then adding ghostview and menu to it,
> then dist-upgrading to sarge plus a menu package with this patch
> applied. There were no problems. Admittedly, this is not a through test.

No, it is not a test at all since ghostview maintainer scripts are
not run during the dist-upgrade since ghostview status does not change,
so it works even with the current menu.

Anyway, thanks for your efforts! They were appreciated!

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]

Reply via email to