- use isSatisfied() to determine installed status of PPP (bnc #381295)
authorJan Kupec <jkupec@suse.cz>
Sun, 20 Apr 2008 21:31:52 +0000 (21:31 +0000)
committerJan Kupec <jkupec@suse.cz>
Sun, 20 Apr 2008 21:31:52 +0000 (21:31 +0000)
src/zypper-search.h

index 3fd5748..96d9350 100644 (file)
@@ -127,6 +127,8 @@ struct FillSearchTableSolvable
       {
         row << (equalNVRA(*installed.resolvable(), *pi.resolvable()) ?  "i" : "v");
       }
+      else if (pi.isSatisfied()) // patches/patterns/products are installed if satisfied
+        row << "i";
       else
         row << "";
       
@@ -178,7 +180,7 @@ struct FillSearchTableSelectable
   {
     TableRow row;
 
-    row << (s->installedEmpty() ? "" : "i");
+    row << (s->installedEmpty() ? (s->theObj().isSatisfied() ? "i" : "") : "i");
     row << s->name();
     row << s->theObj()->summary();
     row << kind_to_string_localized(s->kind(), 1);