Add comment feature

This commit is contained in:
Byron Lathi
2024-08-16 23:12:37 -07:00
parent 27779bec8f
commit 875faf4d56
2 changed files with 4 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ def read_sources(source_file: str) -> List[str]:
with open(source_file, "r") as file:
for line in file:
path = line.strip()
if path.startswith("#"):
continue
if (path.endswith("sources.list")):
new_path = pathlib.Path(base_dir) / path
for recursive_path in read_sources(new_path):
@@ -36,4 +38,4 @@ def read_sources(source_file: str) -> List[str]:
abs_path = pathlib.Path(base_dir / path).absolute()
files.append(str(abs_path))
return files
return files