Fix line breaks in sources list

This commit is contained in:
Mikhail Gordeev 2019-04-19 17:01:56 +03:00
parent d7b911b1f5
commit 656d832e16

View File

@ -165,9 +165,9 @@ Dir::Etc::preferencesparts "/var/empty";
f.write(apt_conf) f.write(apt_conf)
with open(f'{apt_dir}/sources.list.{branch}.{arch}', 'w') as f: with open(f'{apt_dir}/sources.list.{branch}.{arch}', 'w') as f:
sources_list = f'rpm {repo} {arch} classic' sources_list = f'rpm {repo} {arch} classic\n'
if arch not in self.bad_arches: if arch not in self.bad_arches:
sources_list += f'\nrpm {repo} noarch classic' sources_list += f'rpm {repo} noarch classic\n'
f.write(sources_list) f.write(sources_list)
def escape_branch(self, branch: str) -> str: def escape_branch(self, branch: str) -> str: