]> code.ossystems Code Review - openembedded-core.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Jan 2018 10:13:39 +0000 (10:13 +0000)
This can make debug easier, for example, makes it easy to run the
command mannually.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py

index ef69b18b6420f45a9a8177703667355a8646ee7c..99d740bf2cd9fd468fe811b80eccb64c96078b30 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: