Obey --no-recursion option

Mon, 27 Jul 2009 13:21:25 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 27 Jul 2009 13:21:25 +0100
changeset 52
81265a8c6745
parent 51
728f8579abc5
child 53
bd189ae0de00

Obey --no-recursion option

make_squishy file | annotate | diff | comparison | revisions
--- a/make_squishy	Mon Jul 27 13:19:17 2009 +0100
+++ b/make_squishy	Mon Jul 27 13:21:25 2009 +0100
@@ -89,7 +89,8 @@
 				if not filename then
 					print_info("Couldn't resolve "..module.." (required in "..scanfile..")");
 				end
-				if not scanned_files[filename] then
+				if opts.recursion ~= false and not scanned_files[filename] then
+					scanned_files[filename] = true;
 					table.insert(files, filename);
 				end
 				if filename then

mercurial