mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Tolerate single line warning(s)
This commit is contained in:
@@ -39,7 +39,13 @@ def system(args, exclude=None):
|
||||
stripped = [line for line in stripped
|
||||
if not line.startswith(pattern)]
|
||||
if stripped:
|
||||
raise RuntimeError(err)
|
||||
# Tolerate single line warning(s)
|
||||
for line in stripped:
|
||||
if (len(line) < 8) or (line[:8].lower() != "warning:"):
|
||||
raise RuntimeError(err)
|
||||
else:
|
||||
for line in stripped:
|
||||
log('WARNING', line[8:].strip())
|
||||
|
||||
return str(decode(out).strip())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user