repo_haiku: do not use ":" for an empty epoch
authorMichael Schroeder <mls@suse.de>
Wed, 17 Apr 2013 13:44:48 +0000 (15:44 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 17 Apr 2013 13:44:48 +0000 (15:44 +0200)
ext/repo_haiku.cpp

index 1f0b5cf..a417934 100644 (file)
@@ -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();