summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-02-07 12:38:13 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-02-07 12:38:13 +0100
commit857e9c13d8d9808fcd1ac8ff3469f6c0b90b7fea (patch)
tree32e8b6a9b8de4362ba9f038a4e938b4ce93c5e90 /apt-pkg/deb/deblistparser.cc
parent25396fb06350344996a20d05423562f08a4165db (diff)
Drop the Arch information from the Version structure as we can get
the information from the parent package now
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index f683de423..26841d3d2 100644
--- a/apt-pkg/deb/deblistparser.cc
+++ b/apt-pkg/deb/deblistparser.cc
@@ -83,6 +83,13 @@ string debListParser::Architecture() {
return Result;
}
/*}}}*/
+// ListParser::ArchitectureAll /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+bool debListParser::ArchitectureAll() {
+ return Section.FindS("Architecture") == "all";
+}
+ /*}}}*/
// ListParser::Version - Return the version string /*{{{*/
// ---------------------------------------------------------------------
/* This is to return the string describing the version in debian form,
@@ -101,9 +108,6 @@ bool debListParser::NewVersion(pkgCache::VerIterator Ver)
// Parse the section
Ver->Section = UniqFindTagWrite("Section");
- // Parse the architecture
- Ver->Arch = WriteUniqString(Architecture());
-
// Parse multi-arch
if (Section.FindS("Architecture") == "all")
/* Arch all packages can't have a Multi-Arch field,