On Wed, Mar 10, 2004 at 06:13:44PM +0100, Bill Allombert wrote: > Package: kdelibs-bin > Version: 4:3.2.1-1 > Severity: normal > > Hello KDE maintainers, > > I am testing the new KDE menu-methods and they are broken: > > # update-menus > Unknown error, message=replacewith($string, $replace, $with): $replace and > $with must have the same length. > install-menu: /etc/menu-methods/freedesktop-desktop-entry-spec-dirs: aborting > update-menus[4496]: Script > /etc/menu-methods/freedesktop-desktop-entry-spec-dirs returned error status 1. > Unknown error, message=replacewith($string, $replace, $with): $replace and > $with must have the same length. > install-menu: /etc/menu-methods/freedesktop-desktop-entry-spec-apps: aborting > update-menus[4496]: Script > /etc/menu-methods/freedesktop-desktop-entry-spec-apps returned error status 1. > > genmenu call replacewith($section,"/ ","-") which is incorrect, you need > to use replacewith($section,"/ ","--") if you want to replace both '/' > and ' ' by a dash.
Then how come update-menus doesn't output the above messages for me? I'm not saying you are wrong just that update-menus in sid does not give the maintainer any notice that something is wrong like you imply in your bug report. Recall that I had mentioned that replacewith was confusing in the documentation, so the fact that update-menus really doesn't print any errors in the version in Debian compounds the likelyhood of scripts doing it wrong. A version of menu in Debian that can print messages like you showed above would be very useful for maintainers (imho). calc:/etc/menu-methods# update-menus calc:/etc/menu-methods# No error messages at all, -v (verbose) and -d (debug) doesn't show any errors either. BTW - I have menu version 2.1.9-5. Chris
signature.asc
Description: Digital signature