blob: 98b6c96caace3d627541cb228c9e904b58c82261 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
Brad Bishop316dfdd2018-06-25 12:45:53 -04003Index: apt-1.2.24/apt-pkg/deb/dpkgpm.cc
4===================================================================
5--- apt-1.2.24.orig/apt-pkg/deb/dpkgpm.cc
6+++ apt-1.2.24/apt-pkg/deb/dpkgpm.cc
7@@ -54,6 +54,12 @@
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008 #include <apti18n.h>
9 /*}}}*/
10
11+#ifdef USE_NLS
12+#define _dpkg(x) dgettext("dpkg", x)
13+#else
14+#define _dpkg(x) x
15+#endif
16+
17 using namespace std;
18
Brad Bishop316dfdd2018-06-25 12:45:53 -040019 APT_PURE static string
20@@ -1703,7 +1709,7 @@ void pkgDPkgPM::WriteApportReport(const
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 }
22
23 // check if its not a follow up error
24- const char *needle = dgettext("dpkg", "dependency problems - leaving unconfigured");
25+ const char *needle = _dpkg("dependency problems - leaving unconfigured");
26 if(strstr(errormsg, needle) != NULL) {
27 std::clog << _("No apport report written because the error message indicates its a followup error from a previous failure.") << std::endl;
28 return;