| Summary: |
[morty] Using an HTTP premirror for svn+https URI causes fatal wget failure |
| Product: |
[Build System, Metadata & Runtime] BitBake
|
Reporter: |
Rob Anders <rob.anders> |
| Component: |
bitbake | Assignee: |
Armin Kuster <akuster> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
major
|
|
|
| Priority: |
Medium+
|
CC: |
poky.bs.watcher, poky.watcher
|
| Version: |
2.2.2 | |
|
| Target Milestone: |
2.2.2 | |
|
| Hardware: |
All | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
The following is basically just a request to cherry-pick commit f46846dc118a3132eee5aeddb43570b8343afc0a to the morty branch. Preconditions/Environment ------------------------- Yocto 2.2 Triggering Action/Cause ----------------------- Recipe contains an svn SRC_URI with protocol=https and user/pswd fields provided (example): SRC_URI = "svn://chisop60.americas.nsn-net.net/isource/svnroot/${SVN_PATH};module=${PV};user=XXXXX;pswd=XXXXX;protocol=https;name=svn" HTTP premirror is configured for svn (example): PREMIRRORS += "svn://.*/.* http://www.americas.nsn-net.net/~omp/yocto-downloads/ \n" Expectation ----------- Premirror download should be attempted and should either succeed or else fail silently and continue to svn download Actual Result ------------- Task fails with following error: File: '/var/fpwork/maslanka/morty/nsn-yocto/poky/bitbake/lib/bb/fetch2/wget.py', lineno: 113, function: download 0109: fetchcmd += " -O " + dldir + os.sep + ud.localfile 0110: 0111: if ud.user: 0112: up = ud.user.split(":") *** 0113: fetchcmd += " --user=%s --password=%s --auth-no-challenge" % (up[0],up[1]) 0114: 0115: uri = ud.url.split(";")[0] 0116: if os.path.exists(ud.localpath): 0117: # file exists, but we didnt complete it.. trying again.. Exception: IndexError: list index out of range Reproducibility --------------- 10/10 This issue was introduced by http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb/fetch2/wget.py?id=46bad463ef99db9f237723614c5de01f89d5e54f and is fixed by http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb/fetch2/wget.py?id=f46846dc118a3132eee5aeddb43570b8343afc0a Unfortunately, the morty branch contains commit 46bad463 but is missing f46846d. Request a cherry-pick of f46846d to morty branch.