On Thu, Sep 07, 2006 at 08:15:24PM +0200, Bill Allombert wrote:
> > What I would like from the debug option is information about menu files
> > that do not lead to creation of a menu entry, e.g. because the package
> > is not installed or there is an error in the file.
>
> Errors in the file are already reported.
>
> I will try to add a verbose output when files are discarded due to
> package check. Would that be sufficient ?
Please try the attached patch that should do what you want.
Cheers,
--
Bill. <[EMAIL PROTECTED]>
Imagine a large red swirl here.
Index: update-menus/update-menus.cc
===================================================================
RCS file: /cvsroot/menu/menu/update-menus/update-menus.cc,v
retrieving revision 1.49
diff -u -r1.49 update-menus.cc
--- update-menus/update-menus.cc 18 Jun 2006 15:20:49 -0000 1.49
+++ update-menus/update-menus.cc 7 Sep 2006 22:10:43 -0000
@@ -145,6 +145,9 @@
name += pkgname;
if (!is_pkg_installed(pkgname)) {
i.skip_line();
+ config.report(String::compose(
+ _("file %1 line %2:\nDiscarding entry requiring missing
package %3.")
+ , i.filename(), i.linenumber(), pkgname),
configinfo::report_verbose);
throw cond_inst_false();
}
} else if (c == ')') {