R329 v0.5.0版本下载失败问题

2024-02-02 15:16:04 浏览数 (1)

===v0.5.0版本下载失败问题==

====问题现象==== 通过一号通平台下载时, repo init -u ssh://xxx@sdk.allwinnertech.com/git_repo/P101901/manifest.git -b master -m R329-Tina.xml 后提示:

代码语言:javascript复制
tina$ repo init -u ssh://xxx@sdk.allwinnertech.com/git_repo/P101901/manifest.git -b master -m R329-Tina.xml
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6 .

... A new version of repo (2.8) is available.
... New version is available at: /home/xxx/workspace/tina_r329/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable.  Please talk to your sysadmin or distro
!!! to get an update installed.

Traceback (most recent call last):
  File "/home/xxx/workspace/tina_r329/.repo/repo/main.py", line 628, in <module>
    _Main(sys.argv[1:])
  File "/home/xxx/workspace/tina_r329/.repo/repo/main.py", line 602, in _Main
    result = run()
  File "/home/xxx/workspace/tina_r329/.repo/repo/main.py", line 595, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/home/xxx/workspace/tina_r329/.repo/repo/main.py", line 264, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/xxx/workspace/tina_r329/.repo/repo/subcmds/init.py", line 525, in Execute
    self._LinkManifest(opt.manifest_name)
  File "/home/xxx/workspace/tina_r329/.repo/repo/subcmds/init.py", line 348, in _LinkManifest
    self.manifest.Link(name)
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 246, in Link
    self.Override(name)
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 239, in Override
    self._Load()
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 579, in _Load
    self._ParseManifest(nodes)
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 687, in _ParseManifest
    project = self._ParseProject(node)
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 970, in _ParseProject
    self._ParseCopyFile(project, n)
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 1116, in _ParseCopyFile
    self._ValidateFilePaths('copyfile', src, dest)
  File "/home/xxx/workspace/tina_r329/.repo/repo/manifest_xml.py", line 1107, in _ValidateFilePaths
    '<%s> invalid "src": %s: %s' % (element, src, msg))
error.ManifestInvalidPathError: <copyfile> invalid "src": ./build.sh: bad component: .

====问题原因==== 新版repo不支持虚链接

====解决方法==== vim .repo/manifests/R329-Tina.xml 第十五行改为: <copyfile src="build.sh" dest="lichee/brandy-2.0/build.sh" /> 即这种带./或者../的都删掉 然后重新执行:repo init -m R329-Tina.xml 即把-u和-b的参数去掉,在用本地的repo配置文件重新下载。

0 人点赞