diff options
author | Ian.Arkver <ian.arkver.dev@gmail.com> | 2017-04-11 14:25:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-12 15:09:58 +0100 |
commit | f2e41a197fba1937383fd32cbd84c6028bebd928 (patch) | |
tree | 3c82b0b226daf8fbb634084d80cb2f0208023f2e /meta/lib/oe/package_manager.py | |
parent | 620655697d5d55200d2565b4f94ab26407d15b94 (diff) | |
download | poky-f2e41a197fba1937383fd32cbd84c6028bebd928.tar.gz |
package_manager.py: Add a name for the generated dnf repo.
This adds repo_name as the name, which is the same as the
repo ID and hence a bit pointless, but it stops dnf from
complaining that the repo doesn't have a configured name.
(From OE-Core rev: c92cff23893e87cfb7ef9f77b16761310104543a)
Signed-off-by: Ian.Arkver <ian.arkver.dev@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-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 23bf51f168..5a189cff97 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -555,7 +555,7 @@ class RpmPM(PackageManager): | |||
555 | repo_uris = [uri + "/" + arch for arch in feed_archs.split()] | 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]\nname=%s\nbaseurl=%s\n" % (repo_name, repo_name, " ".join(repo_uris))) |
559 | 559 | ||
560 | def _prepare_pkg_transaction(self): | 560 | def _prepare_pkg_transaction(self): |
561 | os.environ['D'] = self.target_rootfs | 561 | os.environ['D'] = self.target_rootfs |