[yum-cvs] package-cleanup.py

Tim Lauridsen timlau at linux.duke.edu
Tue Sep 18 04:53:38 UTC 2007


 package-cleanup.py |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit c54134fa36b3bf1256ba35d7251cda877b2cc838
Author: Tim Lauridsen <tla at rasmil.dk>
Date:   Tue Sep 18 06:52:52 2007 +0200

    Added patch by Mathew Miller to make package-cleanup return exit code

diff --git a/package-cleanup.py b/package-cleanup.py
index 2560b77..80405a6 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -101,8 +101,12 @@ def buildProviderList(my, pkgs, reportProblems):
                 # Store the resolve_sack so that we can re-use it if another
                 # package has the same requirement
                 providers[(req,rflags,ver)] = resolve_sack
-    if not errors and reportProblems:
-        print "No problems found"
+    if reportProblems:
+        if errors:
+            sys.exit(1)
+        else:
+            print "No problems found"
+            sys.exit(0)
     return provsomething
 
 def findDupes(my):



More information about the Yum-cvs-commits mailing list