Bug#427164: patch proposed for #427164

Diego Roversi diegor at tiscali.it
Sat Jan 21 08:31:11 UTC 2017


Hi,

  I've written this simple patch that fix the problem:

--- fretsonfire-1.3.110.dfsg2/src/Song.py	2017-01-21 09:06:24.000000000 +0100
+++ fretsonfire-1.3.110.dfsg2.patched/src/Song.py	2017-01-21 09:22:39.096991225 +0100
@@ -857,6 +857,8 @@
   libraryRoots = []
   
   for songRoot in songRoots:
+    if not os.path.isdir(songRoot):
+      continue
     for libraryRoot in os.listdir(songRoot):
       libraryRoot = os.path.join(songRoot, libraryRoot)
       if not os.path.isdir(libraryRoot):
@@ -877,6 +879,8 @@
   songRoots = [engine.resource.fileName(library), engine.resource.fileName(library, writable = True)]
   names = []
   for songRoot in songRoots:
+    if not os.path.isdir(songRoot):
+      continue
     for name in os.listdir(songRoot):
       if not os.path.isfile(os.path.join(songRoot, name, "song.ini")) or name.startswith("."):
         continue


-- 
Diego Roversi <diegor at tiscali.it>



More information about the Pkg-games-devel mailing list