ソースを参照

* apt-pkg/depcache.cc:
- party revert fix in 0.8.11.2 which marked all packages as manual
installed if the FromUser bit is set in the MarkInstall call.
The default for this bit is true and aptitude depends on the old
behavior so the package is only marked as manual if its not marked
("old" behavior) or if automatic installation is enabled - which
aptitude disables always (see also #613775)

David Kalnischkies 15 年 前
コミット
e26a777c32
共有2 個のファイルを変更した15 個の追加3 個の削除を含む
  1. 4 2
      apt-pkg/depcache.cc
  2. 11 1
      debian/changelog

+ 4 - 2
apt-pkg/depcache.cc

@@ -1257,8 +1257,10 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
 
    if(FromUser)
      {
-       // Set it to manual if it's a new install or already installed
-       if(P.Status == 2 || Pkg->CurrentVer != 0)
+       // Set it to manual if it's a new install or already installed,
+       // but only if its not marked by the autoremover (aptitude depend on this behavior)
+       // or if we do automatic installation (aptitude never does it)
+       if(P.Status == 2 || (Pkg->CurrentVer != 0 && (AutoInst == true || P.Marked == false)))
 	 P.Flags &= ~Flag::Auto;
      }
    else

+ 11 - 1
debian/changelog

@@ -1,11 +1,21 @@
 apt (0.8.11.5) UNRELEASED; urgency=low
 
+  [ Christian Perrier ]
   * Add missing dot in French translation of manpages. Merci, Olivier
     Humbert.
   * French translation update
   * French manpages translation update
 
- -- Christian Perrier <bubulle@debian.org>  Tue, 15 Feb 2011 18:26:08 +0100
+  [ David Kalnischkies ]
+  * apt-pkg/depcache.cc:
+    - party revert fix in 0.8.11.2 which marked all packages as manual
+      installed if the FromUser bit is set in the MarkInstall call.
+      The default for this bit is true and aptitude depends on the old
+      behavior so the package is only marked as manual if its not marked
+      ("old" behavior) or if automatic installation is enabled - which
+      aptitude disables always (see also #613775)
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Thu, 17 Feb 2011 15:16:31 +0100
 
 apt (0.8.11.4) unstable; urgency=low