Skip to content

Commit 74963a4

Browse files
committed
ignore pkg warnings
1 parent 27315bc commit 74963a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libioc/Pkg.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def _mirror_packages(
142142
)
143143

144144
if (stderr is not None) and (len(stderr) > 0):
145-
raise libioc.errors.PkgNotFound(stderr, logger=self.logger)
145+
lines = stderr.split("\n")
146+
if not all((line.startswith("pkg: Warning: ") for line in lines)):
147+
raise libioc.errors.PkgNotFound(stderr, logger=self.logger)
146148

147149
def _build_mirror_index(self, release_major_version: int) -> None:
148150
pkg_ds = self._get_release_pkg_dataset(release_major_version)

0 commit comments

Comments
 (0)