[yum-git] 2 commits - yum/config.py

James Antill james at linux.duke.edu
Mon May 19 13:31:11 UTC 2008


 yum/config.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 5ae57388f5156c51c31929f4bc09c821ba141abc
Merge: 89b0d52... 7a99a04...
Author: James Antill <james at and.org>
Date:   Mon May 19 09:30:44 2008 -0400

    Merge branch 'master' of ssh://login.linux.duke.edu/home/groups/yum/git/yum
    
    * 'master' of ssh://login.linux.duke.edu/home/groups/yum/git/yum:
      gotta check both, not either - otherwise filedeps don't work :(

commit 89b0d52e0cd595010f538df65537df0f4d0c4500
Author: James Antill <james at and.org>
Date:   Mon May 19 09:30:19 2008 -0400

    Allow -c URL to work again

diff --git a/yum/config.py b/yum/config.py
index fecdfe3..218008b 100644
--- a/yum/config.py
+++ b/yum/config.py
@@ -751,7 +751,10 @@ def readMainConfig(startupconf):
     
     # items related to the originating config file
     yumconf.config_file_path = startupconf.config_file_path
-    yumconf.config_file_age = os.stat(startupconf.config_file_path)[8]
+    if os.path.exists(startupconf.config_file_path):
+        yumconf.config_file_age = os.stat(startupconf.config_file_path)[8]
+    else:
+        yumconf.config_file_age = 0
     
     # propagate the debuglevel and errorlevel values:
     yumconf.debuglevel = startupconf.debuglevel



More information about the Yum-cvs-commits mailing list