projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac82095
)
only show alias if it is different from the url
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Wed, 6 Sep 2006 15:56:31 +0000
(15:56 +0000)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Wed, 6 Sep 2006 15:56:31 +0000
(15:56 +0000)
tools/zmart/zmart-sources.cc
patch
|
blob
|
history
diff --git
a/tools/zmart/zmart-sources.cc
b/tools/zmart/zmart-sources.cc
index 4124852f31051e6bffd77c97eaba2e06b3728f03..b5b8f5587c5ce64b737fc406af9434d2fc741c57 100644
(file)
--- 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;
}
/*