[yum-commits] repo-graph.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Jan 12 19:48:00 UTC 2010


 repo-graph.py |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

New commits:
commit 4f7749a298f3912b2e345700e9274775d0aaef53
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Jan 12 14:47:39 2010 -0500

    catch yumbaseerror exceptions in repograph so it won't traceback if our
    repos  aren't available for some reason:
    https://bugzilla.redhat.com/show_bug.cgi?id=548500

diff --git a/repo-graph.py b/repo-graph.py
index e4f0de8..d1ee544 100755
--- a/repo-graph.py
+++ b/repo-graph.py
@@ -113,9 +113,13 @@ if __name__ == '__main__':
                 repo.disable()
             else:
                 repo.enable()
+    try:
+        my.doRepoSetup()
+        my.doTsSetup()
+        my.doSackSetup()
 
-    my.doRepoSetup()
-    my.doTsSetup()
-    my.doSackSetup()
-
-    my.doDot(default_header)
+        my.doDot(default_header)
+    except yum.Errors.YumBaseError, e:
+        print "Encountered an error creating graph: %s" % e
+        sys.exit(1)
+        


More information about the Yum-commits mailing list