commit 39a4c6885091b7a7cc55701706af24774159c84e
parent a3806d3d260441ae9b94fa5ff32b5a07bb6af8f0
Author: parazyd <parazyd@dyne.org>
Date: Thu, 4 Jan 2018 14:43:12 +0100
Rewrite Architectures header with what we are merging.
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lib/release.py b/lib/release.py
@@ -12,7 +12,7 @@ from subprocess import Popen
import lib.globalvars as globalvars
from lib.config import (checksums, distrolabel, gpgdir, release_aliases,
- release_keys, signingkey, signrelease)
+ release_keys, signingkey, signrelease, arches)
from lib.log import info
from lib.parse import parse_release_head, parse_release
@@ -61,6 +61,14 @@ def write_release(oldrel, newrel, filelist, rmstr, rewrite=True):
rel_cont['Date'] = prettyt1
# rel_cont['Valid-Until'] = prettyt2
+ _archlist = ''
+ for i in arches:
+ if i == 'source': continue
+ if i == 'binary-all': continue
+ i = i.replace('binary-', ' ')
+ _archlist += i
+ rel_cont['Architectures'] = _archlist
+
if rewrite:
rel_cont = rewrite_release_head(rel_cont)