]> git.saurik.com Git - apt.git/commitdiff
Add to history whether a change was automatic or not.
authorJulian Andres Klode <jak@debian.org>
Wed, 21 Jul 2010 15:19:16 +0000 (17:19 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 21 Jul 2010 15:19:16 +0000 (17:19 +0200)
apt-pkg/deb/dpkgpm.cc
debian/changelog

index 2945e975016753a0418778795146e54772deb818..aa0b04bd5a9ab0eac5c7a814d0783039e61e8f6b 100644 (file)
@@ -675,7 +675,12 @@ bool pkgDPkgPM::OpenLog()
       for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)
       {
         if (Cache[I].NewInstall())
-           install += I.FullName(false) + string(" (") + Cache[I].CandVersion + string("), ");
+        {
+           install += I.FullName(false) + string(" (") + Cache[I].CandVersion;
+           if (Cache[I].Flags & pkgCache::Flag::Auto)
+              install+= ", automatic";
+           install += string("), ");
+        }
         else if (Cache[I].Upgrade())
            upgrade += I.FullName(false) + string(" (") + Cache[I].CurVersion + string(", ") + Cache[I].CandVersion + string("), ");
         else if (Cache[I].Downgrade())
index efd98de73584235a07b63d40e8141c97610e0bfd..311833192907221d1ad9f984b4e24492bd327da0 100644 (file)
@@ -2,6 +2,7 @@ apt (0.7.26~exp11) experimental; urgency=low
 
   * apt-pkg/deb/dpkgpm.cc:
     - Write architecture information to history file.
+    - Add to history whether a change was automatic or not.
 
  -- Julian Andres Klode <jak@debian.org>  Wed, 21 Jul 2010 17:09:11 +0200