summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-09-13 19:16:06 +0200
committerJulian Andres Klode <jak@debian.org>2017-09-13 19:16:06 +0200
commite9db5ba7c7631d51359967afb1d563da7637be11 (patch)
treee2941b7e610acef566dbe0e2e85a56b141a84ab4 /apt-pkg
parent041909686a1b013057ac29d5cd2d8ca5dc523993 (diff)
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...
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/deb/debmetaindex.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc
index 68ff95f48..c2579e12d 100644
--- a/apt-pkg/deb/debmetaindex.cc
+++ b/apt-pkg/deb/debmetaindex.cc
@@ -275,12 +275,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;