[yum-git] 2 commits - bin/yum.py yummain.py

James Antill james at linux.duke.edu
Fri Feb 8 20:14:02 UTC 2008


 bin/yum.py |    2 +-
 yummain.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 788f0cfbad20255e6cd6954f8997adbd2b168f20
Author: James Antill <james at and.org>
Date:   Fri Feb 8 15:13:28 2008 -0500

    Have user_mina() just call exit

diff --git a/bin/yum.py b/bin/yum.py
index 1896498..112cfad 100755
--- a/bin/yum.py
+++ b/bin/yum.py
@@ -26,7 +26,7 @@ the yum faq at:
 sys.path.insert(0, '/usr/share/yum-cli')
 try:
     import yummain
-    yummain.user_main(sys.argv[1:])
+    yummain.user_main(sys.argv[1:], exit_code=True)
 except KeyboardInterrupt, e:
     print >> sys.stderr, "\n\nExiting on user cancel."
     sys.exit(1)
commit 93f0ba8c5ce3738b8134e351e9a200030919f6cd
Author: James Antill <james at and.org>
Date:   Fri Feb 8 15:13:04 2008 -0500

    Return actual exit code, if anyone cares

diff --git a/yummain.py b/yummain.py
index 25ff931..58dbeb4 100755
--- a/yummain.py
+++ b/yummain.py
@@ -237,7 +237,7 @@ def user_main(args, exit_code=False):
         errcode = main(args)
     if exit_code:
         sys.exit(errcode)
-    return exit_code
+    return errcode
 
 if __name__ == "__main__":
     try:



More information about the Yum-cvs-commits mailing list