Only impose a maxsize for a selected list of packages
Currently everything needs to have a maxsize defined, but for most it doesn't make sense. So only keep those which do and don't impose a limit by default.
This commit is contained in:
parent
60b9a9096e
commit
2237c880a7
@ -95,20 +95,8 @@ class ToTestReleaser(ToTestManager):
|
||||
if re.match(r'.*-(dvd9-dvd|cd-DVD)-.*', package):
|
||||
return 8539996159
|
||||
|
||||
if re.match(r'.*-ftp-(ftp|POOL)-', package):
|
||||
return None
|
||||
|
||||
# containers have no size limit
|
||||
if re.match(r'(opensuse|kubic)-.*-image.*', package):
|
||||
return None
|
||||
|
||||
if '-Addon-NonOss-ftp-ftp' in package:
|
||||
return None
|
||||
|
||||
if 'JeOS' in package or 'Kubic' in package:
|
||||
return 4700372992
|
||||
|
||||
raise Exception('No maxsize for {}'.format(package))
|
||||
# Other types don't have a fixed size limit
|
||||
return None
|
||||
|
||||
def package_ok(self, project, package, repository, arch):
|
||||
"""Checks one package in a project and returns True if it's succeeded
|
||||
|
Loading…
x
Reference in New Issue
Block a user