summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorIan.Arkver <ian.arkver.dev@gmail.com>2017-04-11 14:25:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-11 18:16:55 +0100
commitc92cff23893e87cfb7ef9f77b16761310104543a (patch)
tree67807567673b06c95d474677d4db14f84289f6ac /meta
parenta722016df3f452f7a870157a99a1abb7d97d8280 (diff)
downloadopenembedded-core-c92cff23893e87cfb7ef9f77b16761310104543a.tar.gz
openembedded-core-c92cff23893e87cfb7ef9f77b16761310104543a.tar.bz2
openembedded-core-c92cff23893e87cfb7ef9f77b16761310104543a.zip
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. Signed-off-by: Ian.Arkver <ian.arkver.dev@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py2
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):
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)))
+ 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)))
def _prepare_pkg_transaction(self):
os.environ['D'] = self.target_rootfs