Don't include suggested packages in pattern content, as we can't handle them (bnc...
authorMichael Andres <ma@suse.de>
Sun, 23 Feb 2014 21:10:20 +0000 (22:10 +0100)
committerMichael Andres <ma@suse.de>
Sun, 23 Feb 2014 21:21:03 +0000 (22:21 +0100)
src/info.cc

index 647ad56..8b59138 100644 (file)
@@ -363,7 +363,7 @@ void printPatternInfo(Zypper & zypper, const ui::Selectable & s)
   //God->resolver()->solve();
 
   Pattern::constPtr pattern = asKind<Pattern>(pool_item.resolvable());
-  Pattern::Contents contents = pattern->contents();
+  Pattern::Contents contents = pattern->contentsNoSuggests();  // (bnc#857671) don't include suggests as we can not deal with them .
   for_(sit, contents.selectableBegin(), contents.selectableEnd())
   {
     const ui::Selectable & s = **sit;
@@ -379,7 +379,10 @@ void printPatternInfo(Zypper & zypper, const ui::Selectable & s)
   if (t.empty())
     cout << " " << _("(empty)") << endl;
   else
+  {
+    t.sort( 1 );
     cout << endl << endl << t;
+  }
 }
 
 /**