Files
poky/meta/recipes-devtools/apt/apt/no-nls-dpkg.patch
Alexander Kanavin 9d32d93779 apt: update to 1.0.10.1
(From OE-Core rev: 37c8700560b6da569cdf9d7c306a9aa31dcdf06f)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-08-11 09:28:51 -07:00

27 lines
753 B
Diff

Upstream-Status: Pending
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -42,6 +42,12 @@
#include <apti18n.h>
/*}}}*/
+#ifdef USE_NLS
+#define _dpkg(x) dgettext("dpkg", x)
+#else
+#define _dpkg(x) x
+#endif
+
using namespace std;
namespace
@@ -1279,7 +1285,7 @@ void pkgDPkgPM::WriteApportReport(const
}
// check if its not a follow up error
- const char *needle = dgettext("dpkg", "dependency problems - leaving unconfigured");
+ const char *needle = _dpkg("dependency problems - leaving unconfigured");
if(strstr(errormsg, needle) != NULL) {
std::clog << _("No apport report written because the error message indicates its a followup error from a previous failure.") << std::endl;
return;