Skip to content

Commit

Permalink
Merge pull request openSUSE#3036 from ggardet/master
Browse files Browse the repository at this point in the history
ttm: Allow bigger images for livecd-x11 on aarch64
  • Loading branch information
Vogtinator committed Dec 1, 2023
2 parents 29c388e + 1afc29b commit 6367d8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ttm/releaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ def version_from_project(self):
return self.iso_build_version(self.project.name, self.project.image_products[0].package,
arch=self.project.image_products[0].archs[0])

def maxsize_for_package(self, package):
def maxsize_for_package(self, package, arch):
if re.match(r'.*-mini-.*', package):
return 737280000 # a CD needs to match

if re.match(r'.*-dvd5-.*', package):
return 4700372992 # a DVD needs to match

if re.match(r'livecd-x11', package):
return 681574400 # not a full CD
if re.match(r'livecd-x11-.*', package) and arch == 'x86_64':
return 681574400 # not a full CD on x86

if re.match(r'livecd-.*', package):
return 999999999 # a GB stick
Expand Down Expand Up @@ -122,7 +122,7 @@ def package_ok(self, project, package, repository, arch):
self.logger.info('No "succeeded" for %s %s %s %s' % (project, package, repository, arch))
return False

maxsize = self.maxsize_for_package(package)
maxsize = self.maxsize_for_package(package, arch)
if not maxsize:
return True

Expand Down

0 comments on commit 6367d8f

Please sign in to comment.