From 64b66a46a7fc9e7070ee6a758013a6059fee691e Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 11 Oct 2015 23:05:47 +0200 Subject: show progress info while 'downloading' a local .deb file Showing just "Get: [1234 B]" looks very strange, so we now print the filename and as usual the package name, version and architecture. --- apt-pkg/indexfile.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apt-pkg/indexfile.cc') diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index f57b442a3..34ebcb2b8 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -21,9 +21,10 @@ #include #include #include +#include #include -#include +#include #include @@ -66,8 +67,11 @@ pkgIndexFile::pkgIndexFile(bool const Trusted) : /*{{{*/ } /*}}}*/ // IndexFile::ArchiveInfo - Stub /*{{{*/ -std::string pkgIndexFile::ArchiveInfo(pkgCache::VerIterator const &/*Ver*/) const +std::string pkgIndexFile::ArchiveInfo(pkgCache::VerIterator const &Ver) const { + debDebPkgFileIndex const * const debfile = dynamic_cast(this); + if (debfile != nullptr) + return debfile->ArchiveInfo_impl(Ver); return std::string(); } /*}}}*/ -- cgit v1.2.3