summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:19:10 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:19:10 +0100
commitd77c1c7db760ae21d703b8b0f129379e54918bf7 (patch)
treebfc3899c4e85c9c57924aa6cf2fe608ad7d86920 /apt-pkg/deb
parentd31f807a8d3f031d5efc5c3be9b76f9a9ac22d5d (diff)
metaindex: Add Origin, Label, Version, DefaultPin, ReleaseNotes members
These were hidden behind the d-pointer previously.
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/debmetaindex.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc
index 2c0ab1d0d..a72f6d055 100644
--- a/apt-pkg/deb/debmetaindex.cc
+++ b/apt-pkg/deb/debmetaindex.cc
@@ -447,12 +447,12 @@ bool debReleaseIndex::Load(std::string const &Filename, std::string * const Erro
// FIXME: find better tag name
SupportsAcquireByHash = Section.FindB("Acquire-By-Hash", false);
- SetOrigin(Section.FindS("Origin"));
- SetLabel(Section.FindS("Label"));
- SetVersion(Section.FindS("Version"));
+ Origin = Section.FindS("Origin");
+ Label = Section.FindS("Label");
+ Version = Section.FindS("Version");
Suite = Section.FindS("Suite");
Codename = Section.FindS("Codename");
- SetReleaseNotes(Section.FindS("Release-Notes"));
+ ReleaseNotes = Section.FindS("Release-Notes");
{
std::string const archs = Section.FindS("Architectures");
if (archs.empty() == false)
@@ -484,7 +484,7 @@ bool debReleaseIndex::Load(std::string const &Filename, std::string * const Erro
else
defaultpin = 1;
}
- SetDefaultPin(defaultpin);
+ DefaultPin = defaultpin;
}
bool FoundHashSum = false;