Skip to content

Commit

Permalink
apt: Use 'pk_backend_job_details_full()' so download size is reported…
Browse files Browse the repository at this point in the history
… properly

I guess '3741c6842b' broke the size reporting for backends other than
'dnf' in GNOME Software.

Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026076
  • Loading branch information
sidt4 committed Aug 14, 2024
1 parent f42d198 commit 0da3a4e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions backends/apt/apt-job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,14 +825,15 @@ void AptJob::emitPackageDetail(const pkgCache::VerIterator &ver)
}

g_autofree gchar *package_id = m_cache->buildPackageId(ver);
pk_backend_job_details(m_job,
package_id,
m_cache->getShortDescription(ver).c_str(),
"unknown",
get_enum_group(section),
m_cache->getLongDescriptionParsed(ver).c_str(),
rec.Homepage().c_str(),
size);
pk_backend_job_details_full (m_job,
package_id,
m_cache->getShortDescription(ver).c_str(),
"unknown",
get_enum_group(section),
m_cache->getLongDescriptionParsed(ver).c_str(),
rec.Homepage().c_str(),
ver->InstalledSize,
ver->Size);
}

void AptJob::emitDetails(PkgList &pkgs)
Expand Down

0 comments on commit 0da3a4e

Please sign in to comment.