]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
package_manager.py: print running dnf command
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 31 Oct 2017 05:48:56 +0000 (13:48 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 22 Nov 2017 03:02:15 +0000 (11:02 +0800)
This can make debug easier, for example, makes it easy to run the
command mannually.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/lib/oe/package_manager.py

index 6cbb61fd849a1d50c3150a88f7c959deb1e397a6..e28f3216919425435036970c62db15dc11969e11 100644 (file)
@@ -706,6 +706,7 @@ class RpmPM(PackageManager):
                              "--setopt=logdir=%s" % (self.d.getVar('T'))
                             ]
         cmd = [dnf_cmd] + standard_dnf_args + dnf_args
+        bb.note('Running %s' % ' '.join(cmd))
         try:
             output = subprocess.check_output(cmd,stderr=subprocess.STDOUT).decode("utf-8")
             if print_output: