diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/runtime/cases/dnf.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index eeb4c76071..ae6849bce3 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -677,7 +677,7 @@ class RpmPM(PackageManager): | |||
677 | def _invoke_dnf(self, dnf_args, fatal = True, print_output = True ): | 677 | def _invoke_dnf(self, dnf_args, fatal = True, print_output = True ): |
678 | os.environ['RPM_ETCCONFIGDIR'] = self.target_rootfs | 678 | os.environ['RPM_ETCCONFIGDIR'] = self.target_rootfs |
679 | 679 | ||
680 | dnf_cmd = bb.utils.which(os.getenv('PATH'), "dnf-2") | 680 | dnf_cmd = bb.utils.which(os.getenv('PATH'), "dnf") |
681 | standard_dnf_args = (["-v", "--rpmverbosity=debug"] if self.d.getVar('ROOTFS_RPM_DEBUG') else []) + ["-y", | 681 | standard_dnf_args = (["-v", "--rpmverbosity=debug"] if self.d.getVar('ROOTFS_RPM_DEBUG') else []) + ["-y", |
682 | "-c", oe.path.join(self.target_rootfs, "etc/dnf/dnf.conf"), | 682 | "-c", oe.path.join(self.target_rootfs, "etc/dnf/dnf.conf"), |
683 | "--setopt=reposdir=%s" %(oe.path.join(self.target_rootfs, "etc/yum.repos.d")), | 683 | "--setopt=reposdir=%s" %(oe.path.join(self.target_rootfs, "etc/yum.repos.d")), |
diff --git a/meta/lib/oeqa/runtime/cases/dnf.py b/meta/lib/oeqa/runtime/cases/dnf.py index 77e7eb9450..59a263dc63 100644 --- a/meta/lib/oeqa/runtime/cases/dnf.py +++ b/meta/lib/oeqa/runtime/cases/dnf.py | |||
@@ -12,7 +12,7 @@ from oeqa.runtime.decorator.package import OEHasPackage | |||
12 | class DnfTest(OERuntimeTestCase): | 12 | class DnfTest(OERuntimeTestCase): |
13 | 13 | ||
14 | def dnf(self, command, expected = 0): | 14 | def dnf(self, command, expected = 0): |
15 | command = 'dnf-2 %s' % command | 15 | command = 'dnf %s' % command |
16 | status, output = self.target.run(command, 1500) | 16 | status, output = self.target.run(command, 1500) |
17 | message = os.linesep.join([command, output]) | 17 | message = os.linesep.join([command, output]) |
18 | self.assertEqual(status, expected, message) | 18 | self.assertEqual(status, expected, message) |