fix yum run error again 48/292948/1
authorwang biao <biao716.wang@samsung.com>
Wed, 17 May 2023 11:39:09 +0000 (19:39 +0800)
committerwang biao <biao716.wang@samsung.com>
Wed, 17 May 2023 11:39:09 +0000 (19:39 +0800)
Change-Id: I8b5c315fdfa53bf54fc717552fac1d7f9151cd11
Signed-off-by: wang biao <biao716.wang@samsung.com>
cli.py

diff --git a/cli.py b/cli.py
index 5a7903d7063a740da53a961ecae47c59719d6cd2..a83403a02fb3f1d16cfcd6b31f874ba872d20216 100644 (file)
--- a/cli.py
+++ b/cli.py
@@ -194,7 +194,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
 
         # Just print out the version if that's what the user wanted
         if opts.version:
-            print(yum.__version__)
+            print(yum.__version__, file=sys.stderr)
             opts.quiet = True
             opts.verbose = False