]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/deblistparser.cc
cherry pick -r 2184.1.15..2184.1.18 from debian-experimental2
[apt.git] / apt-pkg / deb / deblistparser.cc
index 08c24204b75c42331d943ce0b3fd61c78df3e62c..89999fb44f6ca7ba4839887dfbd15975aad48d8a 100644 (file)
@@ -69,10 +69,7 @@ string debListParser::Package() {
 // ---------------------------------------------------------------------
 /* This will return the Architecture of the package this section describes */
 string debListParser::Architecture() {
-   std::string const Arch = Section.FindS("Architecture");
-   if (Arch.empty() == true)
-      return _config->Find("APT::Architecture");
-   return Arch;
+   return Section.FindS("Architecture");
 }
                                                                        /*}}}*/
 // ListParser::ArchitectureAll                                         /*{{{*/