[yum-commits] Branch 'yum-3_2_X' - yum/yumRepo.py
James Antill
james at osuosl.org
Tue May 31 21:31:33 UTC 2011
yum/yumRepo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 48bbbb72793fac371c31c19f55e689e472031d90
Author: James Antill <james at and.org>
Date: Tue May 31 17:31:24 2011 -0400
Do the timestamp check the correct way around.
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index cfc6581..1568c54 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1072,7 +1072,7 @@ class YumRepository(Repository, config.RepoConf):
# completely different repo. from last time ... ergo. we can't revert.
# We still want the old data, so we don't download twice. So we
# pretend everything is good until the revert.
- if self.timestamp_check:
+ if not self.timestamp_check:
raise Errors.RepoError, "Can't download or revert repomd.xml"
if 'old_repo_XML' not in self._oldRepoMDData:
More information about the Yum-commits
mailing list