From: Tobias Ulmer Date: Wed, 4 Dec 2013 15:14:03 +0000 (+0100) Subject: No need for chdir in fetch-project X-Git-Tag: e2factory-2.3.15rc1~304 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=8efce7045e0d3ed187ef6b332ed3ca868239c365;p=e2factory.git No need for chdir in fetch-project Signed-off-by: Tobias Ulmer --- diff --git a/global/e2-fetch-project.lua b/global/e2-fetch-project.lua index 8f89971..833ea45 100644 --- a/global/e2-fetch-project.lua +++ b/global/e2-fetch-project.lua @@ -119,7 +119,7 @@ local function e2_fetch_project(arg) local location = string.format("%s/version", p.location) local rc, re = cache.fetch_file(scache, p.server, location, tmpdir, nil, - { cache = false }) + { cache = false }) if not rc then return false, e:cat(re) end @@ -148,8 +148,6 @@ local function e2_fetch_project(arg) return false, e:cat(re) end - e2lib.chdir(p.destdir) - -- checkout the desired branch, if a branch was given if p.branch then local id @@ -227,7 +225,7 @@ local function e2_fetch_project(arg) end -- call e2-install-e2 - rc, re = e2lib.callcmd_log(e2_install_e2) + rc, re = e2lib.callcmd_log(e2_install_e2, p.destdir) if not rc or rc ~= 0 then local e = err.new("installing local e2 failed") return false, e:cat(re)