| Date: Thu, 6 Jul 2017 17:42:42 +0200
ttemporary hardcode a rewrite for proper Release headers
Diffstat:
M lib/release.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
--- |
| t@@ -40,10 +40,14 @@ def write_release(oldrel, newrel, filelist, r, sign=True):
# rewrite Suite to allow for being on stable/testing rather than
# jessie/ascii/...
- # if rel_cont['Suite'] in release_aliases:
- # rel_cont['Label'] = distrolabel
- # rel_cont['Codename'] = rel_cont['Suite']
- # rel_cont['Suite'] = release_aliases[rel_cont['Suite']]
+ if rel_cont['Suite'] in release_aliases:
+ if rel_cont['Suite'] == 'ascii':
+ rel_cont['Version'] = '2.0'
+ elif rel_cont['Suite'] == 'jessie':
+ rel_cont['Version'] = '1.0'
+ rel_cont['Label'] = distrolabel
+ rel_cont['Codename'] = rel_cont['Suite']
+ rel_cont['Suite'] = release_aliases[rel_cont['Suite']]
for k in release_keys:
if k in rel_cont: |