r11700@catbus: nickm | 2007-02-08 02:03:50 -0500

Fix several bugs in computing recommended versions. 1) refactor is-this-version-good handling and which-vesions-are-good handling to be in the same place. 2) a version is recommended if more than half of the versioning authorities like it, not >= half.  3) "NEW_IN_SERIES" should mean, "I don't know of an 0.1.1.x this recent, and there are some 0.1.2.x versions out", not "I don't know of an 0.1.1.x this recent, but I know some older ones."  This should resolve bug 383.


svn:r9523
This commit is contained in:
Nick Mathewson
2007-02-08 07:24:06 +00:00
parent 3f0b36e0e1
commit 1e2d5f30ff
5 changed files with 77 additions and 50 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ tor_version_is_obsolete(const char *myversion, const char *versionlist)
});
/* We didn't find the listed version. Is it new or old? */
if (found_any_in_series && !found_newer_in_series) {
if (found_any_in_series && !found_newer_in_series && found_newer) {
ret = VS_NEW_IN_SERIES;
} else if (found_newer && !found_older) {
ret = VS_OLD;