for (ResPairSet::const_iterator resit = resolvables.begin();
resit != resolvables.end(); ++resit)
// name
- s << resit->second->name()
+ s << (resit->second->kind() == ResKind::product ?
+ resit->second->summary() :
+ resit->second->name())
// version (if multiple versions are present)
<< (dupes.find(resit->second->name()) != dupes.end() ?
string("-") + resit->second->edition().asString() :
TableRow tr;
// name
- tr << resit->second->name() +
+ tr << (resit->second->kind() == ResKind::product ?
+ resit->second->summary() :
+ resit->second->name()) +
// version (if multiple versions are present)
(dupes.find(resit->second->name()) != dupes.end() && !(_viewop & SHOW_VERSION) ?
string("-") + resit->second->edition().asString() :
// ----------------------------------------------------------------------------
+static string get_display_name(const ResObject::constPtr & obj)
+{
+ // in most cases we want to display full product name (bnc #589333)
+ if (obj->kind() == ResKind::product)
+ return obj->summary();
+ return obj->name();
+}
+
/* debugging
static
ostream& operator << (ostream & stm, ios::iostate state)
if (license_auto_agree)
{
zypper.out().info(boost::str(
- // TranslatorExplanation The first %s is name of the resolvable, the second is its kind (e.g. 'zypper package')
+ // translators: the first %s is name of the resolvable,
+ // the second is its kind (e.g. 'zypper package')
format(_("Automatically agreeing with %s %s license."))
- % it->resolvable()->name()
+ % get_display_name(it->resolvable())
% kind_to_string_localized(it->resolvable()->kind(),1)));
MIL << format("Automatically agreeing with %s %s license.")
// is " (package-type)" if other than "package" (patch/product/pattern)
_("In order to install '%s'%s, you must agree"
" to terms of the following license agreement:"),
- it->resolvable()->name().c_str(), kindstr.c_str());
+ get_display_name(it->resolvable()).c_str(), kindstr.c_str());
s << endl << endl;
// license text
// translators: e.g. "... with flash package license."
//! \todo fix this to allow proper translation
_("Aborting installation due to user disagreement with %s %s license."))
- % it->resolvable()->name()
+ % get_display_name(it->resolvable())
% kind_to_string_localized(it->resolvable()->kind(), 1)),
Out::QUIET);
MIL << "License(s) NOT confirmed (interactive)" << endl;