library-web r366 - in trunk: . src



Author: fpeters
Date: Sat Jan 12 15:59:22 2008
New Revision: 366
URL: http://svn.gnome.org/viewvc/library-web?rev=366&view=rev

Log:
* src/lgo.py: check all parts of version directory are numbers.



Modified:
   trunk/ChangeLog
   trunk/src/lgo.py

Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py	(original)
+++ trunk/src/lgo.py	Sat Jan 12 15:59:22 2008
@@ -1474,6 +1474,12 @@
                 if min_version and version_cmp(version_dir, min_version) < 0:
                     continue
 
+                try:
+                    # check all parts are numbers
+                    [int(x) for x in version_dir.split('.')]
+                except ValueError:
+                    continue
+
                 if int(version_dir.split('.')[1]) % 2 == 1 or int(version_dir.split('.')[0]) == 0:
                     # development release, (odd minor version, or major version
                     # as 0): skip unless this is the current development serie



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