Commit 73f4ce7c authored by FichteFoll's avatar FichteFoll

Adjust migration script to not add trailing whitespaces

... for whatever reason since it's not going to be used again anyway.
parent b4a8cd59
......@@ -732,6 +732,10 @@ with open(old_repositories_json_path, encoding='utf-8') as of:
repositories.append(repository)
def dump(data, f):
json.dump(data, f, indent="\t", separators=(',', ': '))
includes = []
if not os.path.exists(new_repository_subfolder_path):
......@@ -750,17 +754,17 @@ for letter in names:
('packages', [])
])
data['packages'] = sorted_packages
json.dump(data, f, indent="\t")
dump(data, f)
with open(new_channel_path, 'w', encoding='utf-8') as f:
data = OrderedDict()
data['schema_version'] = '2.0'
data['repositories'] = repositories
json.dump(data, f, indent="\t")
dump(data, f)
with open(new_repository_path, 'w', encoding='utf-8') as f:
data = OrderedDict()
data['schema_version'] = '2.0'
data['packages'] = []
data['includes'] = sorted(includes)
json.dump(data, f, indent="\t")
dump(data, f)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment