For repos on physical media, they're never going to change, so it'd be
nice to be able to express that. Allow metadata_expire=-1 to imply that
they should never expire.
Jeremy
commit a786b97b783dc51cf46283ee955df8f63d1ee648
Author: Jeremy Katz <[EMAIL PROTECTED]>
Date: Tue Sep 18 13:23:04 2007 -0400
make metadata_expire=-1 to imply "never expire"
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index aaec73d..3570528 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -665,6 +665,9 @@ class YumRepository(Repository, config.RepoConf):
file. If any of them are newer then invalidate the cache
"""
+ # -1 is special and should never get refreshed
+ if expiration_time == -1 and os.path.exists(myfile):
+ return True
val = False
if os.path.exists(myfile):
cookie_info = os.stat(myfile)
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel