コード例 #1
0
ファイル: kernel.py プロジェクト: Rakshithkn/autotest
    def kernelexpand(self, kernel):
        # If we have something like a path, just use it as it is
        if '/' in kernel:
            return [kernel]

        # Find the configured mirror list.
        mirrors = self.job.config_get('mirror.mirrors')
        if not mirrors:
            # LEGACY: convert the kernel.org mirror
            mirror = self.job.config_get('mirror.ftp_kernel_org')
            if mirror:
                korg = 'http://www.kernel.org/pub/linux/kernel'
                mirrors = [
                    [korg + '/v2.6', mirror + '/v2.6'],
                    [korg + '/people/akpm/patches/2.6', mirror + '/akpm'],
                    [korg + '/people/mbligh', mirror + '/mbligh'],
                ]

        patches = kernelexpand.expand_classic(kernel, mirrors)
        print patches

        return patches
コード例 #2
0
ファイル: kernel.py プロジェクト: song-buaa/autotest
    def kernelexpand(self, kernel):
        # If we have something like a path, just use it as it is
        if '/' in kernel:
            return [kernel]

        # Find the configured mirror list.
        mirrors = self.job.config_get('mirror.mirrors')
        if not mirrors:
            # LEGACY: convert the kernel.org mirror
            mirror = self.job.config_get('mirror.ftp_kernel_org')
            if mirror:
                korg = 'http://www.kernel.org/pub/linux/kernel'
                mirrors = [
                    [korg + '/v2.6', mirror + '/v2.6'],
                    [korg + '/people/akpm/patches/2.6', mirror + '/akpm'],
                    [korg + '/people/mbligh', mirror + '/mbligh'],
                ]

        patches = kernelexpand.expand_classic(kernel, mirrors)
        print patches

        return patches
コード例 #3
0
ファイル: kernel.py プロジェクト: waynesun09/autotest
    def kernelexpand(self, kernel):
        # If we have something like a path, just use it as it is
        if "/" in kernel:
            return [kernel]

        # Find the configured mirror list.
        mirrors = self.job.config_get("mirror.mirrors")
        if not mirrors:
            # LEGACY: convert the kernel.org mirror
            mirror = self.job.config_get("mirror.ftp_kernel_org")
            if mirror:
                korg = "http://www.kernel.org/pub/linux/kernel"
                mirrors = [
                    [korg + "/v2.6", mirror + "/v2.6"],
                    [korg + "/people/akpm/patches/2.6", mirror + "/akpm"],
                    [korg + "/people/mbligh", mirror + "/mbligh"],
                ]

        patches = kernelexpand.expand_classic(kernel, mirrors)
        print patches

        return patches