diff options
author | Ian.Arkver <ian.arkver.dev@gmail.com> | 2017-04-10 11:50:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-11 18:10:17 +0100 |
commit | ae65b95354dad27052782160813010b27e10c4fc (patch) | |
tree | 2d63cbea310b4439405e04b5c2ec900597618106 | |
parent | aa524152d82586a169b020a4f643f58a9037f8f5 (diff) | |
download | poky-ae65b95354dad27052782160813010b27e10c4fc.tar.gz |
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>
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 54a3c5e293..23bf51f168 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -552,7 +552,7 @@ class RpmPM(PackageManager): | |||
552 | for uri in remote_uris: | 552 | for uri in remote_uris: |
553 | repo_name = "oe-remote-repo" + "-".join(urlparse(uri).path.split("/")) | 553 | repo_name = "oe-remote-repo" + "-".join(urlparse(uri).path.split("/")) |
554 | if feed_archs is not None: | 554 | if feed_archs is not None: |
555 | repo_uris = [uri + "/" + arch for arch in feed_archs] | 555 | repo_uris = [uri + "/" + arch for arch in feed_archs.split()] |
556 | else: | 556 | else: |
557 | repo_uris = [uri] | 557 | repo_uris = [uri] |
558 | 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))) | 558 | 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))) |