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
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