]> git.e2factory.org Git - e2factory.git/commitdiff
e2-fetch-sources: --all shouldn't cause a scm by default warning
authorTobias Ulmer <tu@emlix.com>
Thu, 19 Jan 2017 16:10:47 +0000 (17:10 +0100)
committerTobias Ulmer <tu@emlix.com>
Mon, 30 Jan 2017 13:33:34 +0000 (14:33 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2-fetch-sources.lua

index 3351d38af1bbe39a569742bc5caa063dbe58c712..b6c539ec914a42058eddd51d21c87f8e627d9581 100644 (file)
@@ -69,7 +69,7 @@ local function e2_fetch_source(arg)
     if #arguments > 0 then
         opts.selection = true
     end
-    if not (opts.scm or opts.files or opts.chroot or opts.selection
+    if not (opts.all or opts.scm or opts.files or opts.chroot or opts.selection
         or opts.git or opts.cvs or opts.svn) then
         e2lib.warn("WOTHER", "Selecting scm sources by default")
         opts.scm = true
@@ -222,7 +222,7 @@ local function e2_fetch_source(arg)
         end
     end
 
-    if opts.scm or opts.files or opts.git or opts.cvs or opts.svn or
+    if opts.all or opts.scm or opts.files or opts.git or opts.cvs or opts.svn or
         opts.selection then
         e2lib.log(2, "fetching sources...")
         local rc, re = fetch_sources(info, opts, sel)