diff -u'Nrpk~' menu-2.1.23~/update-menus/update-menus.cc menu-2.1.23/update-menus/update-menus.cc --- menu-2.1.23~/update-menus/update-menus.cc 2005-04-11 20:21:13 +0400 +++ menu-2.1.23/update-menus/update-menus.cc 2005-04-11 20:27:44 +0400 @@ -95,6 +95,7 @@ bool executable(const string &s) /** Checks whether a package is installed */ bool is_pkg_installed(const string& filename) { + return true; if (contains(filename, "local.")) return true; else @@ -439,6 +440,7 @@ void translateinfo::process(menuentry &m /** Read in list of installed packages */ void read_pkginfo() { + return; // Here we get the list of *installed* packages from dpkg, using sed to // retrieve the package name. char *pkgs = "dpkg-query --show --showformat='${status} ${package}\\n' | sed -n -e 's/.*installed *//p'"; @@ -731,6 +733,8 @@ int check_dpkglock() config.report(_("Update-menus is run by user."), configinfo::report_verbose); return 0; } + // don't use rpm + return 0; fl.l_type = F_WRLCK; fl.l_whence = SEEK_SET; fl.l_start = 0; @@ -840,7 +844,7 @@ void wait_dpkg(string &stdoutfile) if (!no_fork && !verbose) stdoutfile = "/dev/null"; - config.report(_("Dpkg is not locking dpkg status area, good."), + config.report(_("Do not use RPM."), configinfo::report_verbose); } }