From: Oskar Schirmer Date: Tue, 27 Oct 2009 10:29:59 +0000 (+0100) Subject: purge conditional loops X-Git-Tag: e2factory-2.3.2rc1~28 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=d804c48187628c665845ad1284758fc54b180bd4;p=e2factory.git purge conditional loops Signed-off-by: Oskar Schirmer Acked-by: Gordon Hecker --- diff --git a/local/ls-project.lua b/local/ls-project.lua index 3c67d76..c417a13 100755 --- a/local/ls-project.lua +++ b/local/ls-project.lua @@ -124,8 +124,8 @@ if opts.dot or opts["dot-sources"] then else print(string.format(" \"%s\"", r)) end - for _, src in ipairs(res.sources) do - if opts["dot-sources"] then + if opts["dot-sources"] then + for _, src in ipairs(res.sources) do if opts.swap then print(string.format(" \"%s-src\" %s \"%s\"", src, arrow, r)) else @@ -134,8 +134,8 @@ if opts.dot or opts["dot-sources"] then end end end - for _, s in ipairs(info.sources_sorted) do - if opts["dot-sources"] then + if opts["dot-sources"] then + for _, s in ipairs(info.sources_sorted) do print(string.format(" \"%s-src\" [label=\"%s\", shape=box]", s, s)) end end