ttemporary hardcode a rewrite for proper Release headers - amprolla - devuan's apt repo merger (HTM) git clone git://parazyd.org/amprolla.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 0b16e6b79ff7319b967c445bc459a84d4757df3a (DIR) parent 970da152fe6a9f532b198fdcf3232f1a7ca755de (HTM) Author: parazyd <parazyd@dyne.org> 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(-) --- (DIR) diff --git a/lib/release.py b/lib/release.py 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: