bb.fetch2.svn: correctly pass workdir when fetching
PATCH 1/1 bb.fetch2.svn: correctly pass workdir when fetching
From: Christopher Larson <[email protected]>
The ud.pkgdir argument was being passed as the 'quiet' argument to runfetchcmd, not the 'workdir' argument, resulting in fetching the svn module into the root of DL_DIR, not where it belongs.
Cc Matt Madison <[email protected]>
Signed-off-by Christopher Larson <[email protected]>
--- lib/bb/fetch2/svn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/svn.py +1 -1
@@ -141,7 +141,7 @@ class Svn(FetchMethod): bb.utils.mkdirhier(ud.pkgdir) logger.debug(1, "Running %s", svnfetchcmd) bb.fetch2.check_network_access(d, svnfetchcmd, ud.url) - runfetchcmd(svnfetchcmd, d, ud.pkgdir) + runfetchcmd(svnfetchcmd, d, workdir=ud.pkgdir) scmdata = ud.parm.get("scmdata", "") if scmdata == "keep":
Signature · 1 line
2.8.0
Thanks. I think that's the only instance I missed.
-Matt
Quoted 28 lines · Christopher Larson
From: Christopher Larson <[email protected]>
The ud.pkgdir argument was being passed as the 'quiet' argument to runfetchcmd, not the 'workdir' argument, resulting in fetching the svn module into the root of
DL_DIR, not where it belongs.Cc Matt Madison <[email protected]>Signed-off-by Christopher Larson <[email protected]>--- lib/bb/fetch2/svn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/bb/fetch2/svn.py +1
-2@@ -141,7 +141,7 @@ class Svn(FetchMethod): bb.utils.mkdirhier(ud.pkgdir) logger.debug(1, "Running %s", svnfetchcmd) bb.fetch2.check_network_access(d, svnfetchcmd, ud.url) - runfetchcmd(svnfetchcmd, d, ud.pkgdir) + runfetchcmd(svnfetchcmd, d, workdir=ud.pkgdir) scmdata = ud.parm.get("scmdata", "") if scmdata == "keep": --2.8.0