releng r967 - in trunk/tools: . smoketesting



Author: vuntz
Date: Wed Apr 23 15:50:59 2008
New Revision: 967
URL: http://svn.gnome.org/viewvc/releng?rev=967&view=rev

Log:
2008-04-23  Vincent Untz  <vuntz gnome org>

	* smoketesting/convert-to-tarballs.py: do not "crash" in
	_get_files_from_file if we try to list the tarballs for a module that
	never had any release so far. Just ignore it (and warn about it).


Modified:
   trunk/tools/ChangeLog
   trunk/tools/smoketesting/convert-to-tarballs.py

Modified: trunk/tools/smoketesting/convert-to-tarballs.py
==============================================================================
--- trunk/tools/smoketesting/convert-to-tarballs.py	(original)
+++ trunk/tools/smoketesting/convert-to-tarballs.py	Wed Apr 23 15:50:59 2008
@@ -458,11 +458,15 @@
         return location, files
 
     def _get_files_from_file(self, parsed_url, max_version):
+        files = []
         path = parsed_url.path
         good_dir = re.compile('^([0-9]+\.)*[0-9]+$')
         def hasdirs(x): return good_dir.search(x)
         while True:
-            files = os.listdir(path)
+            try:
+                files = os.listdir(path)
+            except OSError:
+                break
 
             newdirs = filter(hasdirs, files)
             if newdirs:



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