prt-get remove trailing whitespace from versioncomparator.cpp
git-svn-id: https://crux.nu/svn/tools/prt-get/trunk@1803 0b5ae1c7-2405-0410-a7fc-ba219f786e1e
This commit is contained in:
parent
1e7028f079
commit
8994a63970
@ -88,11 +88,11 @@ COMP_RESULT compareVersions(const string& v1, const string& v2)
|
||||
} else {
|
||||
// smart guessing...
|
||||
// leaving out 'test', 'pre' and 'rc'
|
||||
static const string versions =
|
||||
static const string versions =
|
||||
"alpha beta gamma delta";
|
||||
string::size_type pos1 =
|
||||
string::size_type pos1 =
|
||||
versions.find(subtokens1[k]);
|
||||
string::size_type pos2 =
|
||||
string::size_type pos2 =
|
||||
versions.find(subtokens2[k]);
|
||||
if (pos1 != string::npos && pos2 != string::npos) {
|
||||
if (pos1 < pos2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user