// plus edition and architecture for verbose output
cout_v << "-" << res->edition() << "." << res->arch();
// plus repo providing this package
- if (res->repository() != Repository::noRepository)
- cout_v << " (" << res->repository().info().name() << ")";
+ if (!res->repoInfo().alias().empty())
+ cout_v << " (" << res->repoInfo().name() << ")";
// new line after each package in the verbose mode
cout_v << endl;
}
Patch::constPtr patch = asKind<Patch>(res);
TableRow tr;
- tr << patch->repository().info().name();
+ tr << patch->repoInfo().name();
tr << res->name () << res->edition ().asString();
tr << patch->category();
tr << string_status (it->status ());
cout << " <description>" << xml_escape(patch->description()) << "</description>" << endl;
cout << " <license>" << xml_escape(patch->licenseToConfirm()) << "</license>" << endl;
- if ( patch->repository() != Repository::noRepository )
+ if ( !patch->repoInfo().alias().empty() )
{
- cout << " <source url=\"" << *(patch->repository().info().baseUrlsBegin());
- cout << "\" alias=\"" << patch->repository().info().alias() << "\"/>" << endl;
+ cout << " <source url=\"" << *(patch->repoInfo().baseUrlsBegin());
+ cout << "\" alias=\"" << patch->repoInfo().alias() << "\"/>" << endl;
}
cout << " </update>" << endl;
if (true) {
TableRow tr (cols);
- tr << patch->repository().info().name();
+ tr << patch->repoInfo().name();
tr << res->name () << res->edition ().asString();
tr << patch->category();
tr << string_status (it->status ());
TableRow tr (cols);
tr << "v";
if (!hide_repo) {
- tr << res->repository().info().name();
+ tr << res->repoInfo().name();
}
if (zypper.globalOpts().is_rug_compatible)
tr << ""; // Bundle
cout << " <description>" << xml_escape(res->description()) << "</description>" << endl;
cout << " <license>" << xml_escape(res->licenseToConfirm()) << "</license>" << endl;
- if ( res->repository() != Repository::noRepository )
+ if ( !res->repoInfo().alias().empty() )
{
- cout << " <source url=\"" << *(res->repository().info().baseUrlsBegin());
- cout << "\" alias=\"" << res->repository().info().alias() << "\"/>" << endl;
+ cout << " <source url=\"" << *(res->repoInfo().baseUrlsBegin());
+ cout << "\" alias=\"" << res->repoInfo().alias() << "\"/>" << endl;
}
cout << " </update>" << endl;