Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
fixed empty ppas
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Apr 1, 2023
1 parent 0ed3728 commit 310473d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nanolayer/installers/apt_get/apt_get_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def is_debian_like(cls) -> bool:

@classmethod
def _clean_ppas(cls, ppas: List[str], remove_software_properties_common: bool) -> None:

normalized_ppas = cls.normalize_ppas(ppas)

for ppa in normalized_ppas:
Expand Down Expand Up @@ -150,7 +151,7 @@ def install(
)

finally:
if clean_ppas:
if ppas and clean_ppas:
cls._clean_ppas(ppas=ppas,
remove_software_properties_common=software_properties_common_installed)

Expand Down

0 comments on commit 310473d

Please sign in to comment.