aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch
diff options
context:
space:
mode:
authorIonut Radu <ionutx.radu@intel.com>2013-06-27 13:07:13 +0300
committerSaul Wold <sgw@linux.intel.com>2013-07-02 07:57:46 -0700
commit1500b4e7f6adec612efbdebad6a08a1efeeda7b6 (patch)
tree516c41ac77a0e5eb24cf04264df55a17244fb0bf /meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch
parent74a803358eb95fda982bc5a2dcdee7461cc971be (diff)
downloadopenembedded-core-contrib-1500b4e7f6adec612efbdebad6a08a1efeeda7b6.tar.gz
apt: Updated from 0.9.8.1 to 0.9.8.2
Signed-off-by: Ionut Radu <ionutx.radu@intel.com> [sgw - fixed apt-native checksums] Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch')
-rw-r--r--meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch b/meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch
new file mode 100644
index 0000000000..f1dd5fd05b
--- /dev/null
+++ b/meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch
@@ -0,0 +1,24 @@
+--- 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;