[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [weather/master] If 0.2.1.34 is stable, that means 0.2.1.34-dev is fine, too



commit 6c5357aa267dcd6acd5fc884a40c9c8afe1a8f12
Author: Christian Fromme <kaner@xxxxxxxxxx>
Date:   Sat Feb 26 22:38:03 2011 +0100

    If 0.2.1.34 is stable, that means 0.2.1.34-dev is fine, too
---
 weather/weatherapp/ctlutil.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/weather/weatherapp/ctlutil.py b/weather/weatherapp/ctlutil.py
index c59047c..c0e2e4f 100644
--- a/weather/weatherapp/ctlutil.py
+++ b/weather/weatherapp/ctlutil.py
@@ -284,6 +284,10 @@ class CtlUtil:
             version_list.append(client_version)
             if get_highest_version(version_list) is client_version:
                 return 'RECOMMENDED'
+            # If 0.2.1.34 is stable, that means 0.2.1.34-dev is fine, too.
+            nondev_name = client_version.replace("-dev", "")
+            if nondev_name in version_list:
+                return 'RECOMMENDED'
 
         return 'OBSOLETE'
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits