diff options
author | Michael Schroeder <mls@suse.de> | 2013-04-17 15:44:48 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-04-17 15:44:48 +0200 |
commit | 4fc4721d5ca515d032971f03d4d6bdc0aa18dfaf (patch) | |
tree | 342615a9f137c376852391d8cc72d3cb5f812931 | |
parent | 1849f54ad9145de0ca41ff003e42a38afd989d5a (diff) | |
download | libsolv-4fc4721d5ca515d032971f03d4d6bdc0aa18dfaf.tar.gz libsolv-4fc4721d5ca515d032971f03d4d6bdc0aa18dfaf.tar.bz2 libsolv-4fc4721d5ca515d032971f03d4d6bdc0aa18dfaf.zip |
repo_haiku: do not use ":" for an empty epoch
-rw-r--r-- | ext/repo_haiku.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/repo_haiku.cpp b/ext/repo_haiku.cpp index 1f0b5cf..a417934 100644 --- a/ext/repo_haiku.cpp +++ b/ext/repo_haiku.cpp @@ -22,9 +22,8 @@ static BString haiku_version_to_string(const BPackageVersion &version) if (version.InitCheck() != B_OK) return BString(); - // compose ":<major>.<minor>.<micro>" (empty epoch) - BString string(":"); - string << version.Major(); + // compose "<major>.<minor>.<micro>" (empty epoch) + BString string(version.Major()); if (!version.Minor().IsEmpty()) { string << '.' << version.Minor(); |