Skip to content

Commit

Permalink
ttm: Allow bigger images for livecd-x11 on aarch64
Browse files Browse the repository at this point in the history
since no CD will be used, but usb sticks
  • Loading branch information
ggardet committed Nov 29, 2023
1 parent 24f3d6b commit 1926dc5
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 1926dc5

Please sign in to comment.