Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit b3e72d5

Browse files
committed
fix builder arch detection for el/fedora
1 parent 2d4cade commit b3e72d5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

builder.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def sub_constructor(*sub_args, **sub_kwargs):
3636
return sub_constructor
3737
if kwargs[key]:
3838
cls.builders[key] = platform_setter(builder, key)
39+
return builder
3940
return sub_register
4041

4142
def __init__(self, *args, **kwargs):
@@ -289,8 +290,7 @@ def package(self):
289290

290291
@Builder.register(
291292
el6_86_32 = platform.system() == 'Linux' and \
292-
'fedora' in platform.dist() and \
293-
'32bit' in platform.architecture(),
293+
'fedora' in platform.dist(),
294294
el6_86_64 = platform.system() == 'Linux' and \
295295
'fedora' in platform.dist() and \
296296
'64bit' in platform.architecture())
@@ -362,8 +362,7 @@ def filename(self):
362362

363363
@Builder.register(
364364
el5_86_32 = platform.system() == 'Linux' and \
365-
'fedora' in platform.dist() and \
366-
'32bit' in platform.architecture(),
365+
'fedora' in platform.dist(),
367366
el5_86_64 = platform.system() == 'Linux' and \
368367
'fedora' in platform.dist() and \
369368
'64bit' in platform.architecture())
@@ -379,8 +378,7 @@ def _build_srpm(self):
379378

380379
@Builder.register(
381380
fedora_86_32 = platform.system() == 'Linux' and \
382-
'fedora' in platform.dist() and \
383-
'32bit' in platform.architecture(),
381+
'fedora' in platform.dist(),
384382
fedora_86_64 = platform.system() == 'Linux' and \
385383
'fedora' in platform.dist() and \
386384
'64bit' in platform.architecture())

0 commit comments

Comments
 (0)