summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-10-31 13:48:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-06 10:13:39 +0000
commit220b912237da78d257c5310bd07db89489afede1 (patch)
treed147ff0f5e771dab8dd58b359a31ef02e43fe981
parent1309b800fbc48bc6a3b7864eb7827b24f855ddac (diff)
downloadopenembedded-core-contrib-220b912237da78d257c5310bd07db89489afede1.tar.gz
openembedded-core-contrib-220b912237da78d257c5310bd07db89489afede1.tar.bz2
openembedded-core-contrib-220b912237da78d257c5310bd07db89489afede1.zip
package_manager.py: print running dnf command
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>
-rw-r--r--meta/lib/oe/package_manager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index ef69b18b64..99d740bf2c 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -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: