make_squishy: Fix traceback on modules that couldn't be found on the filesystem (thanks Valerio)

Thu, 08 Jul 2010 01:11:12 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 08 Jul 2010 01:11:12 +0100
changeset 68
16d59655c817
parent 67
2fc48318b8bb
child 69
df181dcc02b7

make_squishy: Fix traceback on modules that couldn't be found on the filesystem (thanks Valerio)

make_squishy file | annotate | diff | comparison | revisions
--- a/make_squishy	Sat May 29 21:44:23 2010 +0100
+++ b/make_squishy	Thu Jul 08 01:11:12 2010 +0100
@@ -88,8 +88,7 @@
 				end
 				if not filename then
 					print_info("Couldn't resolve "..module.." (required in "..scanfile..")");
-				end
-				if opts.recursion ~= false and not scanned_files[filename] then
+				elseif opts.recursion ~= false and not scanned_files[filename] then
 					scanned_files[filename] = true;
 					table.insert(files, filename);
 				end

mercurial