Override metadata expires value, as it's pointless to run cached
authorJames Antill <james@and.org>
Mon, 10 Dec 2007 23:13:50 +0000 (18:13 -0500)
committerJames Antill <james@and.org>
Mon, 10 Dec 2007 23:13:50 +0000 (18:13 -0500)
yum-updatesd-helper

index 888d8c2..2a7c451 100755 (executable)
@@ -369,6 +369,11 @@ class UpdatesDaemon(yum.YumBase):
                 # gettext.textdomain() and assuming it's from the default
                 # domain for this app)
                 self.emitSetupFailed(str(e))
+        # Override the metadata expire, because there's no point running 
+        # yum-updatesd-helper if we use cached metadata
+        for repo in self.repos.listEnabled():
+            repo.metadata_expire = 1
+
 
     def doLock(self):
         try: