small fix part 4

This commit is contained in:
Spitap
2023-10-15 12:40:39 +02:00
committed by Antoine Nguyen
parent 183bfd2742
commit 5156ad0468

View File

@@ -69,7 +69,7 @@ class DEBPackage(Package):
f"{line_type} [arch=amd64 signed-by={key_file}] "
f"{url} {codename} main"
)
target_file = f"/etc/apt/source.list.d/{name}.list"
target_file = f"/etc/apt/sources.list.d/{name}.list"
tee_option = "-a" if file_exists(target_file) else ""
utils.exec_cmd(f'echo "{line}" | tee {tee_option} {target_file}')
self.index_updated = False