diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-03 11:20:52 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-03 11:21:55 +0100 |
| commit | 45b04762e1990a761a7c308f9e73a286a92f908a (patch) | |
| tree | 80062a0bc3aa8c8ac8b248868e77680e4972f92a /apt-pkg/edsp.cc | |
| parent | b33677749142e0997121d358277b18136bdbef87 (diff) | |
edsp: Write 'Size' to the EDSP files
This allows solvers to optimize by download size; and gives us
a better means of interpreting "downloadable" debs (they must have
a size > 0 after all).
Diffstat (limited to 'apt-pkg/edsp.cc')
| -rw-r--r-- | apt-pkg/edsp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/edsp.cc b/apt-pkg/edsp.cc index 6e02369c9..196f9d307 100644 --- a/apt-pkg/edsp.cc +++ b/apt-pkg/edsp.cc @@ -243,6 +243,8 @@ static bool WriteScenarioEDSPVersion(pkgDepCache &Cache, FileFd &output, pkgCach WriteOkay(Okay, output, "\nPriority: ", Prio); if (Ver->Section != 0) WriteOkay(Okay, output, "\nSection: ", Ver.Section()); + if (Ver->Size != 0) + WriteOkay(Okay, output, "\nSize: ", Ver->Size); if (Pkg.CurrentVer() == Ver) WriteOkay(Okay, output, "\nInstalled: yes"); if (Pkg->SelectedState == pkgCache::State::Hold || |
