mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
package_manager.py: Split feed_archs for RPM repo URIs
By default the feed_archs variable is split into single characters resulting in very many broken short repo_uris. Add a split() to split the string into words first. (From OE-Core rev: 7bd6a4d56c08bf7f9ced7c07327e6163216fee08) Signed-off-by: Ian.Arkver <ian.arkver.dev@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
aa524152d8
commit
ae65b95354
@@ -552,7 +552,7 @@ class RpmPM(PackageManager):
|
||||
for uri in remote_uris:
|
||||
repo_name = "oe-remote-repo" + "-".join(urlparse(uri).path.split("/"))
|
||||
if feed_archs is not None:
|
||||
repo_uris = [uri + "/" + arch for arch in feed_archs]
|
||||
repo_uris = [uri + "/" + arch for arch in feed_archs.split()]
|
||||
else:
|
||||
repo_uris = [uri]
|
||||
open(oe.path.join(self.target_rootfs, "etc", "yum.repos.d", repo_name + ".repo"), 'w').write("[%s]\nbaseurl=%s\n" % (repo_name, " ".join(repo_uris)))
|
||||
|
||||
Reference in New Issue
Block a user