]> git.ipfire.org Git - ipfire.org.git/commitdiff
Don't send non-functional mirrors to the pakfire clients.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jul 2013 10:04:08 +0000 (12:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jul 2013 10:04:08 +0000 (12:04 +0200)
webapp/backend/mirrors.py

index 10159458c62122272ab0f150f472a3a648c5dc82..260cff0d0a425340019b425c13a2b2edec31256a 100644 (file)
@@ -421,7 +421,7 @@ class Mirror(object):
                        self.set_state("UP")
 
        def check_timestamp(self):
-               if self.releases == "N":
+               if not self.type == "full":
                        return
 
                http = tornado.httpclient.AsyncHTTPClient()
@@ -454,7 +454,7 @@ class Mirror(object):
 
        def check_filelist(self):
                # XXX need to remove data from disabled mirrors
-               if self.releases == "N" or self.disabled == "Y" or self.type != "full":
+               if self.disabled == "Y" or self.type != "full":
                        return
 
                http = tornado.httpclient.AsyncHTTPClient()