summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2021-06-10 12:51:45 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2021-06-10 12:51:45 +0200
commite45417c4767c2e54def08f52d55350ed0651d95a (patch)
treee7a37df3d8f24d8e9a4187adcbbc4b7d76ec58b9 /apt-pkg
parent06da685fc1abe073c379a34151500fc4d2d853fa (diff)
Use full item description in broken repo error
The error says the repository is broken but doesn't mention which one it is. The item description gives us at least all the information, but is not as nicely formatted. As this message is not even marked for translation this is a rather temporary affair and we can survive without the eye candy for a while.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index d6ffaf34d..37a715390 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -3471,9 +3471,8 @@ pkgAcqArchive::pkgAcqArchive(pkgAcquire *const Owner, pkgSourceList *const Sourc
}
if (FileSize == 0 && not _config->FindB("Acquire::AllowUnsizedPackages", false))
{
- _error->Error("Repository is broken: %s (= %s) has no Size information",
- Version.ParentPkg().FullName(false).c_str(),
- Version.VerStr());
+ _error->Error("Repository is broken: %s has no Size information",
+ Desc.Description.c_str());
return;
}