From e43fca3f96f21856599b77f69262851543d68721 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 13 Sep 2017 19:18:08 +0200 Subject: Fix translator comment location for legacy target warning In commit Do not warn about duplicate "legacy" targets, we we added an if, that changed the .po files... (cherry picked from commit e9db5ba7c7631d51359967afb1d563da7637be11) Gbp-Dch: ignore --- apt-pkg/deb/debmetaindex.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc index d64bef190..879c941e1 100644 --- a/apt-pkg/deb/debmetaindex.cc +++ b/apt-pkg/deb/debmetaindex.cc @@ -274,12 +274,14 @@ static void GetIndexTargetsFor(char const * const Type, std::string const &URI, if (dup != IndexTargets.end()) { std::string const dupEntry = dup->Option(IndexTarget::SOURCESENTRY); - //TRANSLATOR: an identifier like Packages; Releasefile key indicating - // a file like main/binary-amd64/Packages; filename and linenumber of - // two sources.list entries if (T->find("legacy") == std::string::npos) + { + //TRANSLATOR: an identifier like Packages; Releasefile key indicating + // a file like main/binary-amd64/Packages; filename and linenumber of + // two sources.list entries _error->Warning(_("Target %s (%s) is configured multiple times in %s and %s"), T->c_str(), MetaKey.c_str(), dupEntry.c_str(), E->sourcesEntry.c_str()); + } if (tplMetaKey.find(BreakPoint) == std::string::npos) break; continue; -- cgit v1.2.3