From 080809dc72ca20b31349f64de35f7b2e3f0ec197 Mon Sep 17 00:00:00 2001 From: Thomas Staudinger Date: Sat, 14 Sep 2024 22:12:02 +0200 Subject: [PATCH] Fix 3rd-party build failures for JetBrain IDEs Fixes https://github.com/getsolus/3rd-party/issues/81 Signed-off-by: Thomas Staudinger --- pisi/archive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi/archive.py b/pisi/archive.py index 50de990..e7b2866 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -482,7 +482,8 @@ def _tar_file_list(self): with self._open_tar() as tar: paths = [tarinfo.path for tarinfo in tar] - self.fileobj.seek(0) + if self.fileobj is not None: + self.fileobj.seek(0) return paths