Репозитории ALT
S: | 2.1.41-alt23 |
5.1: | 2.1.41-alt9 |
4.1: | 2.1.41-alt3.M41.1 |
4.0: | 2.1.35-alt5 |
3.0: | 2.1.25-alt3 |
+backports: | 2.1.29-alt4.0.M30 |
Группа :: Система/Основа
Пакет: menu
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: menu-2.1.23-alt-norpm.patch
Скачать
Скачать
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);
}
}