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:
1900172
)
Changed to not print major/minior if unused
author
Marius Tomaschewski
<mt@suse.de>
Sat, 11 Feb 2006 21:30:51 +0000
(21:30 +0000)
committer
Marius Tomaschewski
<mt@suse.de>
Sat, 11 Feb 2006 21:30:51 +0000
(21:30 +0000)
zypp/media/MediaSource.h
patch
|
blob
|
history
diff --git
a/zypp/media/MediaSource.h
b/zypp/media/MediaSource.h
index 6051daa5000ff2f769f5ae0487db50ac73a87175..13b2f09a92547e21efb1e080cef376f39cd606b5 100644
(file)
--- a/
zypp/media/MediaSource.h
+++ b/
zypp/media/MediaSource.h
@@
-66,9
+66,13
@@
namespace zypp {
*/
virtual std::string asString() const
{
- return type + ":" + name + "(" +
- str::numstring(maj_nr) + "," +
- str::numstring(min_nr) + ")";
+ std::string tmp;
+ if(maj_nr != 0)
+ {
+ tmp = "[" + str::numstring(maj_nr) + "," +
+ str::numstring(min_nr) + "]";
+ }
+ return type + "<" + name + tmp + ">";
}
unsigned int maj_nr; //!< A major number if source is a device.