Browse Source

* apt-pkg/deb/deblistparser.cc:
- only treat the native apt as essential by default

David Kalnischkies 14 years ago
parent
commit
a552f37eba
2 changed files with 16 additions and 2 deletions
  1. 8 2
      apt-pkg/deb/deblistparser.cc
  2. 8 0
      debian/changelog

+ 8 - 2
apt-pkg/deb/deblistparser.cc

@@ -249,8 +249,14 @@ bool debListParser::UsePackage(pkgCache::PkgIterator &Pkg,
       return false;
 
    if (strcmp(Pkg.Name(),"apt") == 0)
-      Pkg->Flags |= pkgCache::Flag::Essential | pkgCache::Flag::Important;
-   
+   {
+      if ((essential == "native" && Pkg->Arch != 0 && myArch == Pkg.Arch()) ||
+	  essential == "all")
+	 Pkg->Flags |= pkgCache::Flag::Essential | pkgCache::Flag::Important;
+      else
+	 Pkg->Flags |= pkgCache::Flag::Important;
+   }
+
    if (ParseStatus(Pkg,Ver) == false)
       return false;
    return true;

+ 8 - 0
debian/changelog

@@ -1,3 +1,11 @@
+apt (0.9.1+nmu1) unstable; urgency=low
+
+  [ David Kalnischkies ]
+  * apt-pkg/deb/deblistparser.cc:
+    - only treat the native apt as essential by default
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 18 Apr 2012 18:12:07 +0200
+
 apt (0.9.1) unstable; urgency=low
 
   [ David Kalnischkies ]