Fix to show removed packages correctly.
authorJán Kupec <jkupec@suse.cz>
Fri, 27 Mar 2009 13:39:35 +0000 (14:39 +0100)
committerJán Kupec <jkupec@suse.cz>
Fri, 27 Mar 2009 13:39:35 +0000 (14:39 +0100)
src/Summary.cc

index 13cb3e6..3959c9e 100644 (file)
@@ -307,7 +307,7 @@ void Summary::writeNewlyInstalled(ostream & out)
 
 void Summary::writeRemoved(ostream & out)
 {
-  for_(it, toupgrade.begin(), toupgrade.end())
+  for_(it, toremove.begin(), toremove.end())
   {
     string label;
     if (it->first == ResKind::package)
@@ -593,6 +593,7 @@ void Summary::dumpTo(ostream & out)
   writeChangedVendor(out);
   if (_viewop & SHOW_UNSUPPORTED)
     writeUnsupported(out);
+  out << endl;
   //! \todo write package counts
   writeDownloadAndInstalledSizeSummary(out);
 }