// name
tr << repo.name();
// url
- tr << (repo.baseUrlsEmpty() ? "n/a" : repo.url().asString());
+ tr << (repo.baseUrlSet() ? repo.url().asString() : (repo.mirrorListUrl().asString().empty() ? "n/a" : repo.mirrorListUrl().asString() ));
tbl << tr;
i++;
* \todo properly handle multiple baseurls - show "(multiple)"
*/
if (all || showuri)
- tr << (repo.baseUrlsEmpty() ? "n/a" : repo.url().asString());
+ tr << (repo.baseUrlSet() ? repo.url().asString() : (repo.mirrorListUrl().asString().empty() ? "n/a" : repo.mirrorListUrl().asString() ));
if (all || showservice)
tr << repo.service();
TableRow tr; tr << _("Alias") << repo.alias(); t << tr;
TableRow tr_name; tr_name << _("Name") << repo.name(); t << tr_name;
- TableRow tr_uri; tr_uri << _("URI") << repo.url().asString(); t << tr_uri;
+ TableRow tr_uri; tr_uri << _("URI") << (repo.baseUrlSet() ? repo.url().asString() : (repo.mirrorListUrl().asString().empty() ? "n/a" : repo.mirrorListUrl().asString() )); t << tr_uri;
TableRow tr_en;
tr_en << _("Enabled") << (repo.enabled() ? _("Yes") : _("No"));
t << tr_en;
s << ( repo.enabled() ? "[x]" : "[ ]" );
s << ( repo.autorefresh() ? "* " : " " );
s << (zypper.config().show_alias ? repo.alias() : repo.name());
- s << " (" << (repo.baseUrlsEmpty() ? "n/a" : repo.url().asString()) << ")" << endl;
+ s << " (" << (repo.baseUrlSet() ? repo.url().asString() : (repo.mirrorListUrl().asString().empty() ? "n/a" : repo.mirrorListUrl().asString() )) << ")" << endl;
}
else
{
# norootforbuild
Name: @PACKAGE@
-BuildRequires: libzypp-devel >= 8.0.1
+BuildRequires: libzypp-devel >= 8.11.0
BuildRequires: boost-devel >= 1.33.1
BuildRequires: gettext-devel >= 0.15
BuildRequires: readline-devel >= 5.1