diff --git a/apt/cmdline/apt-get.cc b/apt/cmdline/apt-get.cc index 730f6f5..91ac4c9 100644 --- a/apt/cmdline/apt-get.cc +++ b/apt/cmdline/apt-get.cc @@ -1428,12 +1428,15 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache, { if (_config->FindB("APT::Get::ReInstall",false) == true) { - if (Pkg->CurrentVer == 0 || Pkg.CurrentVer().Downloadable() == false) - ioprintf(c1out,_("Reinstallation of %s is not possible, it cannot be downloaded.\n"), + if (Pkg->CurrentVer == 0) + ioprintf(c1out,_("Reinstallation of %s is not possible.\n"), Pkg.Name()); + else if (Pkg.CurrentVer().Downloadable() == false) + ioprintf(c1out,_("Reinstallation of %s %s is not possible, it cannot be downloaded.\n"), + Pkg.Name(), Pkg.CurrentVer().VerStr()); else Cache.SetReInstall(Pkg,true); - } + } else { if (AllowFail == true) diff --git a/apt/cmdline/apt-shell.cc b/apt/cmdline/apt-shell.cc index 6d1f767..1dcfc06 100644 --- a/apt/cmdline/apt-shell.cc +++ b/apt/cmdline/apt-shell.cc @@ -1504,12 +1504,15 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache, { if (_config->FindB("APT::Get::ReInstall",false) == true) { - if (Pkg->CurrentVer == 0 || Pkg.CurrentVer().Downloadable() == false) - ioprintf(c1out,_("Reinstallation of %s is not possible, it cannot be downloaded.\n"), + if (Pkg->CurrentVer == 0) + ioprintf(c1out,_("Reinstallation of %s is not possible.\n"), Pkg.Name()); + else if (Pkg.CurrentVer().Downloadable() == false) + ioprintf(c1out,_("Reinstallation of %s %s is not possible, it cannot be downloaded.\n"), + Pkg.Name(), Pkg.CurrentVer().VerStr()); else Cache.SetReInstall(Pkg,true); - } + } else { if (AllowFail == true) diff --git a/apt/po/ru.po b/apt/po/ru.po index 3f60732..717ce2d 100644 --- a/apt/po/ru.po +++ b/apt/po/ru.po @@ -789,8 +789,13 @@ msgstr " #: cmdline/apt-get.cc:1432 cmdline/apt-shell.cc:1507 #, c-format -msgid "Reinstallation of %s is not possible, it cannot be downloaded.\n" -msgstr "Переустановить %s невозможно, потому что этот пакет нельзя скачать.\n" +msgid "Reinstallation of %s is not possible.\n" +msgstr "Переустановить %s невозможно.\n" + +#: cmdline/apt-get.cc:1432 cmdline/apt-shell.cc:1507 +#, c-format +msgid "Reinstallation of %s-%s is not possible, it cannot be downloaded.\n" +msgstr "Переустановить %s-%s невозможно, потому что этот пакет нельзя скачать.\n" #: cmdline/apt-get.cc:1440 cmdline/apt-shell.cc:1515 #, c-format