From 6db9c09c8f4129436c29ed9b9b8d3ba198d89a22 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Wed, 6 Sep 2006 15:56:31 +0000 Subject: [PATCH] only show alias if it is different from the url --- tools/zmart/zmart-sources.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/zmart/zmart-sources.cc b/tools/zmart/zmart-sources.cc index 4124852f3..b5b8f5587 100644 --- a/tools/zmart/zmart-sources.cc +++ b/tools/zmart/zmart-sources.cc @@ -80,7 +80,10 @@ void list_system_sources() SourceInfo source = *it; cout << ( source.enabled() ? "[x]" : "[ ]" ); cout << ( source.autorefresh() ? "* " : " " ); - cout << source.alias() << " (" << source.url() << ")" << endl; + if ( source.alias() != source.url().asString() ) + cout << source.alias() << " (" << source.url() << ")" << endl; + else + cout << source.url() << endl; } /* -- 2.34.1