Logo Search packages:      
Sourcecode: yum-utils version File versions  Download package

def fastestmirror::FastestMirror::get_mirrorlist (   self )
This function pings/polls all the mirrors in the list
C{FastestMirror.mirrorlist} and returns the sorted list of mirrors
according to the increasing response time of the mirrors.

This function refers:
    - L{FastestMirror._poll_mirrors()}

This function is referred by:
    - L{postreposetup_hook()}
    - L{main()}

@rtype: List
@return: The list of mirrors sorted according to the increasing
response time.

Definition at line 330 of file fastestmirror.py.

                            :
        """
        This function pings/polls all the mirrors in the list
        C{FastestMirror.mirrorlist} and returns the sorted list of mirrors
        according to the increasing response time of the mirrors.

        This function refers:
            - L{FastestMirror._poll_mirrors()}

        This function is referred by:
            - L{postreposetup_hook()}
            - L{main()}

        @rtype: List
        @return: The list of mirrors sorted according to the increasing
        response time.
        """
        self._poll_mirrors()
        if not downgrade_ftp:
            mirrors = [(v, k) for k, v in self.results.items()]
        else:
            # False comes before True
            mirrors = [(k.startswith("ftp"), v, k) for k, v in
                       self.results.items()]
        mirrors.sort()
        return [x[-1] for x in mirrors]


Generated by  Doxygen 1.6.0   Back to index