string selectable_search_repo_str(const ui::Selectable & s)
{
string repostr;
- for_(it, s.installedBegin(), s.installedEnd())
- {
- if (!(*it)->repository().isSystemRepo())
- {
- cout << "can this ever be true?" << endl;
- if (repostr.empty())
- repostr = (*it)->repository().info().name();
- else
- {
- repostr = _("(multiple)");
- return repostr;
- }
- }
- }
// show available objects
for_(it, s.availableBegin(), s.availableEnd())
{
if (repostr.empty())
repostr = (*it)->repository().info().name();
- else
+ else if (repostr != (*it)->repository().info().name())
{
repostr = _("(multiple)");
return repostr;
}
}
-
- return string();
+
+ return repostr;
}
}
else
row << "";
+
row << pi->repository().info().name();
row << (_gopts.is_rug_compatible ? "" : kind_to_string_localized(pi->kind(), 1))
<< pi->name()
TableRow row;
row << (s->installedEmpty() ? "" : "i");
+ row << s->name();
//! \todo improve the abbreviation
row << (_gopts.no_abbrev || s->theObj()->summary().size() < 33 ?
s->theObj()->summary() : s->theObj()->summary().substr(0,28) + "...");