Преглед на файлове

Add to history whether a change was automatic or not.

Julian Andres Klode преди 16 години
родител
ревизия
6bf8f0d198
променени са 2 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 6 1
      apt-pkg/deb/dpkgpm.cc
  2. 1 0
      debian/changelog

+ 6 - 1
apt-pkg/deb/dpkgpm.cc

@@ -675,7 +675,12 @@ bool pkgDPkgPM::OpenLog()
       for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)
       for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)
       {
       {
 	 if (Cache[I].NewInstall())
 	 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())
 	 else if (Cache[I].Upgrade())
 	    upgrade += I.FullName(false) + string(" (") + Cache[I].CurVersion + string(", ") + Cache[I].CandVersion + string("), ");
 	    upgrade += I.FullName(false) + string(" (") + Cache[I].CurVersion + string(", ") + Cache[I].CandVersion + string("), ");
 	 else if (Cache[I].Downgrade())
 	 else if (Cache[I].Downgrade())

+ 1 - 0
debian/changelog

@@ -2,6 +2,7 @@ apt (0.7.26~exp11) experimental; urgency=low
 
 
   * apt-pkg/deb/dpkgpm.cc:
   * apt-pkg/deb/dpkgpm.cc:
     - Write architecture information to history file.
     - 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
  -- Julian Andres Klode <jak@debian.org>  Wed, 21 Jul 2010 17:09:11 +0200