Skip to content

Commit 0b23605

Browse files
author
Samuel FORESTIER
committed
Fixes self.etc_dir not resolved when listing "[.../]/etc" directory
1 parent 48f9a66 commit 0b23605

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/distro/distro.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,9 @@ def _distro_release_info(self) -> Dict[str, str]:
13261326
try:
13271327
basenames = [
13281328
basename
1329-
for basename in os.listdir(self.etc_dir)
1329+
for basename in os.listdir(
1330+
self.__resolve_chroot_symlink_as_needed(self.etc_dir)
1331+
)
13301332
if basename not in _DISTRO_RELEASE_IGNORE_BASENAMES
13311333
]
13321334
# We sort for repeatability in cases where there are multiple

0 commit comments

Comments
 (0)