Merge pull request #319 from k0da/maxsize_ppc

ppc fixes
This commit is contained in:
Max Lin 2015-03-25 22:08:44 +08:00
commit 45e36ecbce
2 changed files with 7 additions and 4 deletions

View File

@ -83,7 +83,7 @@ class CleanupRings(object):
self.fill_pkgdeps(prj, 'standard', arch)
if prj == '{}:1-MinimalX'.format(self.api.crings):
url = makeurl(self.api.apiurl, ['build', prj, 'images', 'x86_64', 'Test-DVD-' + arch, '_buildinfo'])
url = makeurl(self.api.apiurl, ['build', prj, 'images', arch, 'Test-DVD-' + arch, '_buildinfo'])
root = ET.parse(http_GET(url)).getroot()
for bdep in root.findall('bdep'):
if 'name' not in bdep.attrib:
@ -95,7 +95,7 @@ class CleanupRings(object):
self.pkgdeps[b] = 'MYdvd'
if prj == '{}:2-TestDVD'.format(self.api.crings):
url = makeurl(self.api.apiurl, ['build', prj, 'images', 'x86_64', 'Test-DVD-' + arch, '_buildinfo'])
url = makeurl(self.api.apiurl, ['build', prj, 'images', arch, 'Test-DVD-' + arch, '_buildinfo'])
root = ET.parse(http_GET(url)).getroot()
for bdep in root.findall('bdep'):
if 'name' not in bdep.attrib:

View File

@ -198,6 +198,9 @@ class ToTestBase(object):
if package == '_product:openSUSE-Addon-NonOss-ftp-ftp-i586_x86_64':
return None
if package == '_product:openSUSE-ftp-ftp-ppc_ppc64_ppc64le':
return None
raise Exception('No maxsize for {}'.format(package))
def package_ok(self, project, package, repository, arch):
@ -373,7 +376,7 @@ class ToTestFactory(ToTestBase):
# for Factory we check the version of the release package
def current_version(self):
url = self.api.makeurl(['build', 'openSUSE:%s' % self.project, 'standard', 'x86_64',
url = self.api.makeurl(['build', 'openSUSE:%s' % self.project, 'standard', self.arch(),
'_product:openSUSE-release'])
f = self.api.retried_GET(url)
root = ET.parse(f).getroot()
@ -408,7 +411,7 @@ class ToTestFactoryPowerPC(ToTestBase):
# for Factory we check the version of the release package
def current_version(self):
url = self.api.makeurl(['build', 'openSUSE:%s' % self.project, 'standard', 'ppc64le',
url = self.api.makeurl(['build', 'openSUSE:%s' % self.project, 'standard', self.arch(),
'_product:openSUSE-release'])
f = self.api.retried_GET(url)
root = ET.parse(f).getroot()