summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-0.9.8.2/no-nls-dpkg.patch
blob: a0996d4d44024b6b581876dce243fb33c3ab3618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;